Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一些批处理工作并将其作为 ExternalTool 集成到 IntelliJ IDEA。如此处所述:配置 Intellij IDEA 以运行批处理文件
但是,如何将按钮添加到工具栏以激活定义为外部工具的批处理?
这很容易。
假设您已经配置了外部工具,只需右键单击菜单栏并选择Customize Menus and Toolbars...:
Customize Menus and Toolbars...
下一步是标记最后一项(无论您的设置中的什么)Main Toolbar并选择Add After...:
Main Toolbar
Add After...
现在您可以从Choose Actions To Add窗口中选择您的外部工具(在这里您也可以选择要使用的图标):
Choose Actions To Add
已添加操作:
您的按钮已添加到工具栏: