IntelliJ - easy way to add all environment variables and PATH locations to the run config

3.1k Views Asked by At

We can add Environment variables one by one environment variables manually using UI screen. But is there a easy way to load/add all PATH locations or Environment variables mentioned in .bashrc file.

enter image description here

1

There are 1 best solutions below

1
turbofood On BEST ANSWER

Yes all you need to do is paste them in the Run/Debug Configuration screen before this window opens. Each env variable must be deliminated by a semicolon ; too.

Example:

PATH=/mypath; JAVA_HOME=/anotherpath;

Intellij Guide:

Paste them here: