如何在IntelliJ IDEA中添加链接到外部工具的按钮

时间:2014-09-23 10:41:54

标签: intellij-idea build-automation external-tools

我创建了一些批处理工作并将其作为ExternalTool集成到IntelliJ IDEA中。如下所述:Configure Intellij IDEA to run batch file

但是如何在工具栏中添加按钮来激活定义为外部工具的批处理?

1 个答案:

答案 0 :(得分:17)

这很容易。

假设您已经配置了外部工具,只需右键单击菜单栏并选择Customize Menus and Toolbars...enter image description here

下一步是在Main Toolbar中标记最后一项(您的设置中的任何内容)并选择Add After...

enter image description here

现在,您可以从Choose Actions To Add窗口中选择外部工具(此处您也可以选择要使用的图标):

enter image description here

已添加行动:

enter image description here

您的按钮已添加到工具栏中:

enter image description here