rweng
rweng

Reputation: 7240

Intellij IDEA: Can I have custom variable's in my run configurations

Usecase:

I've found no gruntjs plugin for Intellij IDEA. And I think I don't need one. If only I'd have the option to have each run/debug run ask for the parameter. For example, Rubymine has a rails generator shortcut which asks which generator to call before actually doing it. It'd like to have something like this in my grunt run configuration. Is this possible?

Thanks!

Upvotes: 0

Views: 1494

Answers (2)

rweng
rweng

Reputation: 7240

I found that although it's not possible in the Run/Debug Dialog, it is possible with External Tools: Settings -> External Tools -> Add an External Tool and then as parameter $Prompt$.

Upvotes: 2

Michał Rybak
Michał Rybak

Reputation: 8706

There is nothing like Eclipse's ${string_prompt} in IDEA (as far as I know). My version is 12.1.6.

Anyway, you can scroll to the very bottom of Run/Debug configuration screen and in "Before launch" section check a checkbox saying "Show this page".

From now on you'll be automatically shown configuration screen after you click Run/Debug button.

Upvotes: 0

Related Questions