intellij-ideaintellij-pluginintellij-14intellij-13intellij-15

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


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


Solution

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