IntelliJ IDEA
 
Get IntelliJ IDEA

Path variables

Last modified: 08 October 2024

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 IntelliJ IDEA.

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

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

IntelliJ IDEA also has the following built-in path variables: