What Was I Thinking?

Follies & Foils of .NET Development
posts - 94 , comments - 352 , trackbacks - 0

Thursday, February 6, 2014

Resharper: Add “Locate in Solution Explorer” to the Code Window Tab Context Menu

I Love Resharper’s Find In Solution Explorer command.  It locates the currently active code file in the solution explorer.  Using my keyboard layout I can activate it using Shift+Alt+L, but most times I prefer to select it from the context menu of my code window tab, you know, this thing:

image

Here’s how I added it:

  1. From the Tools menu select Customize
  2. On the Customize dialog click the Commands tab
  3. Select the Context Menu Radio button
  4. In the Context Menu drop down, scroll to the bottom and locate Other Context Menus | Easy MDI Document Window
  5. Scroll to the bottom of the list and click the Add Command button
  6. In the Add Command dialog, select Resharper from the Categories list.
  7. From the Commands list, select Resharper_LocateInSolutionExplorer
  8. SNAGHTML606d5b5
  9. Click Ok.
  10. Click the Move Up / Move Down buttons to place the command where you want it within the context menu.
  11. Optional – If you want a separator line above the command, with the command selected click  the Modify Selection button and check Begin a Group
  12. Click the Close  button.

That’s it!  Now your active source file is one click away!

Posted On Thursday, February 6, 2014 1:52 AM | Comments (2) | Filed Under [ Visual Studio ]

Powered by: