Customizing Context Menus

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:

  1. Go To Tools.Customize. 
  2. On the Toolbars Tab, check "Shortcut Menus".  You will notice that several new items on the main toolbar with the title shortcut menus. 
  3. 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.
  4. 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.

-Sean Laberee

Comments (0)

Skip to main content