How do I specify a run configuration's environment variables all at once?

Answered

Hi Guys. Longtime IDEA user here with a simple question. My programs often use multiple environment variables, which are set in run configurations using the Environment variables dialog box as documented here: https://www.jetbrains.com/help/idea/2016.2/run-debug-configuration-application.html . However, when I have multiple vars to set, using the dialog is tedious. Instead I want to paste a line like this: "PASSWORD=xx;HOST=localhost". Ths docs say:

> Note that you can copy-paste the contents of the Environment variables field without having to open the Environment Variables dialog box.

But the text field that displays the settings as a semicolon-delimited string does not allow pasting:

How do I use the documented feature?

Thank you -- matt

1
3 comments

Anyone have a comment, please?

0

It appears that documentation is not correct. Please feel free to report a bug at https://youtrack.jetbrains.com/issues/IDEA to either fix the docs or fix the dialog so that multiple variables can be copy/pasted at once.

0

Done:

Allow editing multiple run configuration environment variables at once : IDEA-199231
https://youtrack.jetbrains.com/issue/IDEA-199231

0

Please sign in to leave a comment.