How to add buttons linked to your external tool in IntelliJ IDEA

久未见 提交于 2019-12-19 06:39:09

问题


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?


回答1:


It is quite easy.

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):

Action has been added:

And your button has been added to the toolbar:



来源:https://stackoverflow.com/questions/25993042/how-to-add-buttons-linked-to-your-external-tool-in-intellij-idea

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