Visual Studio - Shortcut to Navigate to Solution Explorer

Visual Studio-2010Keyboard Shortcuts

Visual Studio-2010 Problem Overview


Is there a keyboard shortcut in Visual Studio (aside from CTRL+TAB and selection) that would take me from inside a document directly into the solution explorer? I don't want to customize any shortcuts or change any default behavior.

Visual Studio-2010 Solutions


Solution 1 - Visual Studio-2010

> CTRL+ALT+L

should shift focus to the Solution Explorer.

For visual studio 2012 use:

CTRL+[ + S this selects your current document in the solution explorer.

Solution 2 - Visual Studio-2010

When using VS 2012 with the Visual C# 2005 keyboard mapping scheme:

> CTRL+W, S

I find this easier to memorize: All shortcuts beginning with CTRL+W are for opening or navigating to W indows:

  • CTRL+W, S: S olution Explorer
  • CTRL+W, E: E rror list
  • CTRL+W, R: R esourceview
  • CTRL+W, A: Command window (A ction ...)
  • CTRL+W, T: T askview
  • CTRL+W, Q: Find Symbol Results
  • CTRL+W, X: Toolbo x
  • CTRL+W, C: C lassview
  • CTRL+W, P: P roperties
  • CTRL+W, B: B ookmarks
  • ...

Solution 3 - Visual Studio-2010

In Visual Studio 2012 you can now use CTRL+; as this is the default keyboard shortcut for the solution explorer search box.

Solution 4 - Visual Studio-2010

On my windows 7 machine : Ctrl+ALT+L locks the computer.

For me : Shift+ALT+L works. (This could also be a resharper configuration)

Solution 5 - Visual Studio-2010

  1. shortcut ctrl [, S will focus current open file/document in solution explorer.
  2. setting checkbox to true in "Track active in Solution Explorer" will automatically focus current open file/document in solution explorer (Tools->Options->Projects and solutions->General->"Track Active Item in Solution Explorer"=true

Solution 6 - Visual Studio-2010

The default keyboard shortcut for opening/jumping to Solution Explorer is Ctrl + Alt + L.

Solution 7 - Visual Studio-2010

Extended above : command name for sync tab with solution explorer is "SolutionExplorer.SyncWithActiveDocument"

Solution 8 - Visual Studio-2010

Visual Studio

2015 and 2017 (by default) VS 2017 Shortcuts

Ctrl + [, S

Runs Keyboard Shortcut

SolutionExplorer.SyncWithActiveDocument

ReSharper

In Visual Studio 2015 and 2017 (by default) Resharper Docs

Shift + Alt + L

Which runs Resharper's Keyboard Shortcut

Resharper.Resharper_LocateInSolutionOrAssemblyExplorer

Both

  • Focus Solution Explorer

  • Highlight document

  • Scroll / expand nodes (as required to show that document)

Difference

Resharper's version also works with decompiled code. Locating decompiled symbols in the Assembly Explorer window.

To customise / it doesn't work :

  1. Tools > Options > Environment > Keyboard

  2. Search shortcut name (e.g. SolutionExplorer.SyncWithActiveDocument)

  3. Assign (in Global) to Keyboard shortcuts as you like

Solution 9 - Visual Studio-2010

ctrl + [ + S.

This shortcut will highlight the currently opened document in solution explorer.

Solution 10 - Visual Studio-2010

I had this problem on a new machine build with VS 2013 and R# 8.2.

Keyboard option Resharper.Resharper_LocateInSolutionExplorer was correctly set to Shift+Alt+L, but it seemed to be only opening a parent folder and not selecting the actual file. As recommended in another post I enabled "Track active in Solution Explorer" in the VS Options.

This didn't fix the problem and wasn't what I want because in very large solutions I don't want the solution explorer jumping around to the current file in use. I disabled the Track feature and restarted VS, the LocateInSolutionExplorer feature then started working correctly. Some sort of shortcut precedence issue?

Solution 11 - Visual Studio-2010

For AZERTY keyboards like mine, the default shortcut is Ctrl+), Ctrl+S

Solution 12 - Visual Studio-2010

We just upgraded from VS2013 to VS2017, and I had to go looking for how to auto-select the active tab in the Solution Explorer. I often have to look for a document by finding a text-string from a screen, and love to have it select the document so I can see where it is.

Tracking the active document has been default behavior for a long time. VS2017 brought over ALL my other preferences, but not this one. Glad I found this thread--Thank you.

Solution 13 - Visual Studio-2010

Ctrl+Alt+L works fine even in VS 2019.

But if you have reassigned the above key to some other command (by mistake in my case) then the name of the command is View.SolutionExplorer

You can search it in the Tools -> Options -> Environment -> Keyboard or just do Ctrl+Q and search keymap.

And then search View.SolutionExplorer in the Show commands containing: and assign whichever key you want.

enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionstepanianView Question on Stackoverflow
Solution 1 - Visual Studio-2010keyboardPView Answer on Stackoverflow
Solution 2 - Visual Studio-2010marapetView Answer on Stackoverflow
Solution 3 - Visual Studio-2010BaldyView Answer on Stackoverflow
Solution 4 - Visual Studio-2010AyKarsiView Answer on Stackoverflow
Solution 5 - Visual Studio-2010MirvelView Answer on Stackoverflow
Solution 6 - Visual Studio-2010khellangView Answer on Stackoverflow
Solution 7 - Visual Studio-2010NigrimmistView Answer on Stackoverflow
Solution 8 - Visual Studio-2010MemeDeveloperView Answer on Stackoverflow
Solution 9 - Visual Studio-2010SathishView Answer on Stackoverflow
Solution 10 - Visual Studio-2010AaronView Answer on Stackoverflow
Solution 11 - Visual Studio-2010Charles HETIERView Answer on Stackoverflow
Solution 12 - Visual Studio-2010BarbaraC1977View Answer on Stackoverflow
Solution 13 - Visual Studio-2010Kishan VaishnavView Answer on Stackoverflow