Customizing Visual Studio With External Tools, Part 2

January 23rd, 2012 by

In my previous post I showed you how to configure your own External Tools in Visual Studio, such as a command that opens up the current document in an external text editor, or a tool that launches a custom deployment executable. External Tools by default are accessed through the Tools menu, but this is lame. In this post I’ll show you to create your own toolbar to contain your tools so they are no more than one click away.

Creating a custom toolbar

To create a custom toolbar, click Tools > Customize… or right-click in the open space in the toolbar area and select “Customize…” at the very bottom of this context menu. Click “New…” to create a new toolbar and give it a name and click OK, then close this dialog box.

Creating a new toolbar

It may appear that nothing has happened, but your toolbar has been added, it’s just empty. Look closely at your toolbars and you should be able to spot it:

Customize your toolbar

Click on the arrow, then “Add or Remove Buttons” then “Customize”. From this dialog, click “Add Command…”. Here you’ll see two lists, one for categories and another for the commands associated with the selected category.  Find and select the “Tools” category, then select the “External Command 1” command.

Add commands to your toolbar

The process is certainly a little cumbersome, but you’ll get the hang of it after doing it once or twice. The “External Commands” listed in the Commands window correspond with the external tools you have [previously configured –link to post #1]. It’s not magical enough to know the name of the external tools you’ve configured, so you’ll have to keep track of what you’ve created and the order they are in. In my example, I have three external tools configured, and I’m going to add each of them to my toolbar: External Command 1, External Command 2, and External Command 3.

External Commands correspond to the External Tools you have, in order

When you are done, close out any remaining open dialogs and your custom toolbar should be all set!

A custom toolbar!

One Response to “Customizing Visual Studio With External Tools, Part 2”

  1. January 26, 2012 at 5:09 pm, Customizing Visual Studio With External Tools, Part 1 | Headspring said:

    [...] Part 2: Creating a custom toolbar [...]

    Reply

Leave a Reply