Is there a way to run only an “external tool” in a JetBrains “run configuration”

巧了我就是萌 提交于 2019-12-01 12:25:42

问题


Alle (or nearly all) "run configurations" in JetBrains IDEs provide an option to run an "external tool" as part of their execution. Is there a way to only run an external tool in a run configuration?


回答1:


Not sure why you need it... I can suggest trying the Bash Support plugin (http://plugins.jetbrains.com/plugin/4230?pr=idea) - it has a kind of 'generic' run configuration that can be used for running arbitrary executable. See if it works for you. But note that it's a third-party plugin JetBrains is not responsible for




回答2:


This has been a pain point for me for years. Here's my solution:

Run Configurations can be configured to invoke External Tools before launch, so the trick is to setup a run configuration that does absolutely nothing and then add your external tools to it.

Example: In WebStorm, I use an npm run configuration with the command set to version. Invoking this will cause all of the External Tool configurations in the Before Launch section to be executed (in order) before finally running npm version, which just generates output to the npm console.



来源:https://stackoverflow.com/questions/27850800/is-there-a-way-to-run-only-an-external-tool-in-a-jetbrains-run-configuration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!