Visual Studio 2012 : Navigate to Current File in Solution Explorer
Created 07 December 2012 11:49

We use Visual Studio 2012 with an older version of Resharper at work. I've been wanting to use Visual Studio 2012, but our version of Resharper isn't compatible, and although I can get by without most of the features, the one I REALLY REALLY REALLY miss is the ability to navigate to the current file in the solution explorer. With the help of an existing extension I've finally managed to resolve that.

First off, download and install the extension mentioned above - you can also get it from within Visual Studio 2012 as per the below screen show:

Extension image

Once you've done that, you will be able to right-click on the current tab in Visual Studio to navigate directly to your file:

Context menu image

The last thing we want to do, is also hook this up to a keyboard command. I like to hook it up to "Alt-Shift-L"; to do this follow these steps:

  • Click the Tools menu
  • Click Customise...
  • Click the Keyboard... button
  • In the "Show commands containing" textbox type "FindInSolutionExplorer" (see screenshot below)
  • Select the "Press shortcut keys" text box, and hit "Shift-Alt-L" (or whatever keyboard combination you want)
  • Click "Assign", and then OK all the dialogs

Assign key image