# Path Variables

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/go/2026.3/llms.txt).

> **TL;DR**
> `File | Settings | Appearance & Behavior | Path Variables` for Windows and Linux
>
>
>
> `GoLand | Settings | Appearance & Behavior | Path Variables` for macOS
>
>
>
> `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)) ![the Settings icon](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.settings.svg)

## Path Variables page

> **Tip:**
> For more information about configuring variables, refer to [Path variables](absolute-path-variables.html).

| Item | Description |
| --- | --- |
| Reset | Revert path variables and the list of ignored variables to their initially saved states. |
| Name | This field shows the name of a path variable (readonly). |
| Value | This field shows the value of a path variable (readonly). |
| ![the Add button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.add.svg) or `Alt+Insert` (Windows), `⌘ N` (macOS), `⌃ N` (IntelliJ IDEA Classic (macOS)), `⌘ N` (macOS System Shortcuts), `Alt+Insert` (XWin), `Alt+Insert` (GNOME), `Alt+Insert` (KDE), `Alt+Insert` (Emacs), `Ctrl+N` (Sublime Text), `⌘ N` (Sublime Text (macOS)), `Alt+Insert` (VSCode), `⌃ ⏎` (VSCode (macOS)) | Create a new path variable. |
| ![the Edit button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.edit.svg) or `Enter` (Windows), `⏎` (macOS), `⏎` (IntelliJ IDEA Classic (macOS)), `⏎` (macOS System Shortcuts), `Enter` (XWin), `Enter` (GNOME), `Enter` (KDE), `Enter` (Emacs), `Enter` (Sublime Text), `⏎` (Sublime Text (macOS)), `Enter` (VSCode), `⏎` (VSCode (macOS)) | Edit the selected path variable. |
| ![the Remove button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.remove.svg) or `Alt+Delete` (Windows), `⌘ ⌦` (macOS), `⌘ ⌦` (IntelliJ IDEA Classic (macOS)), `⌘ ⌦` (macOS System Shortcuts), `Alt+Delete` (XWin), `Alt+Delete` (GNOME), `Alt+Delete` (KDE), `Alt+Delete` (Emacs), `Alt+Delete` (Sublime Text), `⌘ ⌦` (Sublime Text (macOS)), `Alt+Delete` (VSCode), `Alt+Delete` (VSCode (macOS)) | Delete the selected path variable. |
| Ignored Variables |  List the names of the variables that should be ignored. Use semicolons `;` to separate the list items.  |

## Add / Edit Variable dialog

| Item | Description |
| --- | --- |
| Name | Specify the path variable name. |
| Value | Specify the path variable value. Use ![the Browse button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.open.svg)  `Shift+Enter` (Windows), `⇧ ⏎` (macOS), `⇧ ⏎` (IntelliJ IDEA Classic (macOS)), `⇧ ⏎` (macOS System Shortcuts), `Shift+Enter` (XWin), `Shift+Enter` (GNOME), `Shift+Enter` (KDE), `Shift+Enter` (Emacs), `Ctrl+Enter` (Sublime Text), `⌘ ⏎` (Sublime Text (macOS)), `Ctrl+Enter` (VSCode), `⌘ ⏎` (VSCode (macOS)) to select the necessary file or folder in the Select Path dialog. |

## Example: creating a new path variable

You may have an attached directory that is located outside your project directory. This  directory is attached to your project, and the path to this  directory is included in the `.iml` file of your project. However, this path should not be absolute, because the location of this directory may be different on other computers.  In this case, you can create the `PATH_TO_ATT_DIR` variable:

Procedure:

1. Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)) to open settings and then select `Appearance & Behavior | Path Variables`.

2. Click ![the Add button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.add.svg).

3. In the Add Variable dialog, type the `PATH_TO_ATT_DIR` variable, and its value that points to the directory location on your disk.

4. Share the `.iml` file through your version control system.

5. After your teammates update their projects from VCS, they will change the `PATH_TO_ATT_DIR` variable value so that it points to the library location on their computers.

