IntelliJ IDEA
 
Get IntelliJ IDEA

Configure a Ruby interpreter

Last modified: 19 November 2024

To work with your Ruby code in IntelliJ IDEA, you need to configure at least one Ruby interpreter. You can set up the interpreter for the currently opened project, or when creating a new project.

Configuration of 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 installed Ruby directly from IntelliJ IDEA, the installed interpreter is set as the default for the current project.

  • 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.