9

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?

Cœur
  • 37,241
  • 25
  • 195
  • 267
yossico
  • 3,421
  • 5
  • 41
  • 76

1 Answers1

24

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...: enter image description here

Next step is to mark the last item (whatever that is in your setup) in Main Toolbar and select Add After...:

enter image description here

Now you can select your external tool from the Choose Actions To Add window (here you can also select an icon to use):

enter image description here

Action has been added:

enter image description here

And your button has been added to the toolbar:

enter image description here

maba
  • 47,113
  • 10
  • 108
  • 118
  • 4
    In newer versions of IntelliJ IDEA, you either need to enable the Toolbar first (View > Toolbar) or open the "Menus and Toolbars" window via the preferences (Ctrl + Alt + S, Appearance & Behavior > Menus and Toolbars). – Impulse The Fox Feb 05 '19 at 08:13