Create a Visual Studio toolbar button

[Visual Studio toolbar button]

The example Create a Visual Studio tool shows how to add useful web or email capabilities to Visual Studio’s Tools menu. This entry explains how to add a Visual Studio toolbar button for those commands so they’re easier to use.

After you add the tools to the Tools menu, follow these steps to make the toolbar buttons:

  1. Open the Tools menu and select Customize.
  2. On the Toolbars tab, click New. Name the new toolbar “Links” (or whatever you like).
  3. With the Customize dialog still visible, open the Tools menu. Find the new external command(s) you created in the previous post. It will probably be named something like “External Command 3” somewhere above the External Tools item. Right-click this item and change its Name to “C# Helper” or something more appropriate than “External Command 3.”
  4. Then hold down the Ctrl key and drag the item to the new toolbar. This will copy the item into the new toolbar while leaving a copy in the Tools menu.
  5. Close the Customize dialog and test the new toolbar’s command.

You can use similar techniques to place other commands on a new toolbar to make tools you need frequently easier to use.

Follow me on Twitter   RSS feed   Donate

This entry was posted in IDE, miscellany and tagged , , , , , , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *