问题
Lets say I have run-config1 and run-config2 setup for my project in IntelliJ. I know there are ways of adding custom shell code to be perfomed before/after a build run, but that's not what I want to do.
Is there a way of calling them from the embedded terminal?
回答1:
As of IntelliJ IDEA 14 there is no such way. You can write a plugin for IntelliJ IDEA that will handle a command like "idea.sh run configuration-name" and start the run configuration in the existing instance, but this is fairly non-trivial.
来源:https://stackoverflow.com/questions/28584459/intellij-launch-run-configuration-from-the-embeded-terminal