Add custom Run/Debug Configuration Macros

Answered

Hi, I was wondering if Intellij supports the ability to specify custom macros for the run/debug configuration screen.  

1. Run -> Edit Configurations

In this example I have a TestNG test that we use as a system test against a live system (not unit test) but I need to specify the VM arguments.  When I click the + on the right side of VM options the macro screen pops up.  However, I'm not sure how to add to this list.  In eclipse there are string substitutions that I can use to save this data for me instead of having to paste it for each test/run configuration.

 

Thanks.

4 comments
Comment actions Permalink

Hi James,

What version of the IDE are you using?

0
Comment actions Permalink

IntelliJ IDEA 2021.2.1 (Ultimate Edition)
Build #IU-212.5080.55, built on August 23, 2021

0
Comment actions Permalink

You can add custom path macros under File | Settings | Appearance & Behavior | Path Variables:

See also https://www.jetbrains.com/help/idea/absolute-path-variables.html

2
Comment actions Permalink

That works.  Thank you.

0

Please sign in to leave a comment.