配置IntelliJ IDEA的运行批处理文件 [英] Configure Intellij IDEA to run batch file
问题描述
我使用InteliJ IDEA(社区加法),我发现自己做了一些文件传输,并从项目文件夹。
reapeating任务一段时间后,我已经创建了一个全自动转化中的文件的一些批处理脚本。现在,我会感到非常的更快乐,如果我可以直接从IDE运行的脚本 - 由pressing例如按钮...
I'm using InteliJ IDEA (Community addition) and I found myself doing some file transfers to and from the project folder. After reapeating the task for a while I've created some batch scripts that transfering the files automaticly. Now, I'll be much more happy if I could run the scripts directly from the IDE - by pressing a button for example...
问题是:我可以添加按钮的IntelliJ IDE - 将运行一个批处理文件?如果可能的话我会很高兴地知道它是如何做。
Question is: Can I add buttons to IntelliJ IDE - that will run a batch file? If it's possible I'll be happy to know how it can be done.
谢谢!
推荐答案
您可以使用外部工具来调用任何程序
You can use "External Tools" to invoke any program
转到设置 - >外部工具
并创建一个工具,这将打开下面的对话框中选择程序<批处理文件/ code>。
Goto Settings->External Tools
and create a tool which will open the following dialog choose the batch file for Program
.
然后,刀具会在菜单工具
参考:外部工具
的更新:的
如果您想将外部工具工具栏检查如何添加链接到您的外部工具按钮链接到一个按钮 InteliJ IDEA
If you want to link an 'External Tool' to a 'Button' in the toolbar check How to add buttons linked to your external tool in InteliJ IDEA
这篇关于配置IntelliJ IDEA的运行批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!