RubyMine
 
2022.3
Get RubyMine
You are viewing the documentation for an earlier version of RubyMine.

Path variables

Last modified: 16 January 2023

Use path variables to define absolute paths to resources that are not part of a specific project. These external resources may be located in different places on the computers of your teammates. This is why user-defined custom path variables are not stored as project settings, but as global IDE settings. Once configured, such path variables will have the same value for any project that you open with your instance of RubyMine.

You can use path variables to specify paths and command-line arguments for external tools and in some run configurations. For more information, see Built-in IDE macros.

For example, you can define a path variable that points to the location of some data source (like a CSV file) or a third-party library that is not stored in your project. If you use this path variable in a run configuration that you share with your project, others can define the correct value for this path variable in their environment and be sure that the run configuration will work for them.

Refer to the variable as $var_name$ in fields and configuration files that accept path variables.

RubyMine also has the following built-in path variables: