IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Configure a Ruby interpreter

Last modified: 21 June 2021

Required plugin: Ruby

Configure: Project Structure | Project Settings | Modules | Ruby SDK and Gems

To work with a Ruby project in IntelliJ IDEA, you need to configure the required Ruby interpreter. You can set the interpreter for the currently opened project or when creating a new project.

Configuring the Ruby interpreter depends on the way you installed it:

  • If you installed Ruby using a package manager (apt for Ubuntu, Homebrew for macOS, and so on) or Ruby installer (for example, RubyInstaller for Windows), you need to add it manually.

  • If you installed Ruby using a version manager, IntelliJ IDEA should detect interpreters automatically. In this case, you can select the desired version.

  • If you are using Ruby installed in an isolated environment (Docker, Vagrant, WSL, and so on), IntelliJ IDEA allows you to configure it as a remote interpreter.

Concepts