Is there a feature that will prompt for vars before launching run configurations?
I have a run configuration I would like to launch and have it prompt me for the value of an envvar before it runs.
Example: I have a Jest script that can run on one of three environments, I want the run config to prompt me for NODE_ENV before it runs Jest.
I would like to do this with only one run configuration for all three environments, so three run configs for three envs is a no-go.
Bonus points if the dialog box remembers the last value I put in there for repeated runs.
请先登录再写评论。
Yes, you can use
$Prompt$for that, you can use them multiple times, but unfortunately, you cannot name them.https://youtrack.jetbrains.com/issue/IDEA-89869
I don't see a request for them to remember their values too, so please submit one: https://youtrack.jetbrains.com/newIssue?project=WI
Thanks Eugene!
https://youtrack.jetbrains.com/issue/WI-52928?project=WI
This looks promising: https://github.com/jakubbrindza/intellij-lift and it's gplv3...