如何在IntelliJ IDEA中添加链接到外部工具的按钮 [英] How to add buttons linked to your external tool in IntelliJ IDEA
问题描述
我创建了一些批处理工作并将其作为ExternalTool集成到IntelliJ IDEA。如下所述:配置Intellij IDEA以运行批处理文件
I created some batch work and integrated it as ExternalTool to the IntelliJ IDEA. as described here: Configure Intellij IDEA to run batch file
但是,如何在工具栏中添加按钮来激活定义为外部工具的批处理呢?
But how can I add buttons to my toolbar that will activate the batch that defined as external tool?
推荐答案
这很容易。
假设您已经配置了外部工具,只需右键单击菜单栏,然后选择自定义菜单和工具栏...
:
Assuming that you already have an External Tool configured just right click on the menu bar and choose Customize Menus and Toolbars...
:
下一步是在主工具栏
中标记最后一项(无论设置中的内容如何),然后选择添加之后...
:
Next step is to mark the last item (whatever that is in your setup) in Main Toolbar
and select Add After...
:
现在,您可以从选择要添加的操作
窗口中选择外部工具(在这里您还可以选择一个使用的图标):
Now you can select your external tool from the Choose Actions To Add
window (here you can also select an icon to use):
已添加操作:
您的按钮已添加到工具栏:
And your button has been added to the toolbar:
这篇关于如何在IntelliJ IDEA中添加链接到外部工具的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!