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:
- Open the Tools menu and select Customize.
- On the Toolbars tab, click New. Name the new toolbar “Links” (or whatever you like).
- 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.”
- 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.
- 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.