如何在InteliJ IDEA中添加链接到外部工具的按钮 [英] How to add buttons linked to your external tool in InteliJ IDEA

查看:593
本文介绍了如何在InteliJ IDEA中添加链接到外部工具的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一些批处理工作,并将其作为ExternalTool集成到InteliJ IDEA中。如下所述:配置Intellij IDEA以运行批处理文件

I created some batch work and integreted it as ExternalTool to the InteliJ 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...:

下一步是在主工具栏中标记最后一项(设置中的任何内容)并选择 Add After ...

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:

这篇关于如何在InteliJ IDEA中添加链接到外部工具的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆