I’ve been getting this question a lot in the past few weeks, so I’ve decided this would make a quick blog post. In Visual Studio 2005, we’ve added the ability to customize many of the context menus that you see in the product. Here’s how:
- Go To Tools.Customize.
- On the Toolbars Tab, check “Shortcut Menus”. You will notice that several new items on the main toolbar with the title shortcut menus.
- Switch to the Commands Tab and drag the command you want added onto the appropriate menu. There are default groupings for Solution Explorer, Class View and Debugging context menus. Other Shortcut Menus contains the remaining list of uncategorized context menus.
- Click Close
If you want to add items to the editor context menu, you can add them to the Code Window group under Other Shortcut Menus.