9

I'm using VS 2010, 2012 & 2013.

Usually I don't want the IDE to auto-focus on the item in solution explorer but sometimes it's useful.

Is there any keyboard shortcut or a menu option to navigate to the file in solution explorer on demand?

Thanks :)

Jim Aho
  • 9,932
  • 15
  • 56
  • 87
WillyCode
  • 135
  • 2
  • 10
  • 1
    possible duplicate of [visual studio 2012 scroll solution explorer to current file](http://stackoverflow.com/questions/12682656/visual-studio-2012-scroll-solution-explorer-to-current-file) – Ravi Yenugu Jul 03 '14 at 19:32
  • If you wrote it as an answer I'd select it, but here I can't :) – WillyCode Jul 04 '14 at 15:48

3 Answers3

15

For VS 2012, 2013, 2015 and 2017: "Sync with Active Document" (default shortcut: Ctrl+[, S).

Jim Aho
  • 9,932
  • 15
  • 56
  • 87
AlejandroR
  • 5,133
  • 4
  • 35
  • 45
9

I know your question refers to 2010, 2012 & 2013, but VS 2017 has a button on the solution explorer to sync with active document:

enter image description here

Jim Aho
  • 9,932
  • 15
  • 56
  • 87
AntonK
  • 2,303
  • 1
  • 20
  • 26
2

Go to Tools/Options/Enviroment/keyboard look for View.TrackActivityinSolutionExplorer and assign the shortcut that you want.

Here I needed to remove the shortcut first, because the ctrl+shift+t was already assigned.

Of course, you can assign other shortcut.

steps

  • 1
    This setting is not a one off, it turns it permanently on or off (basically by ticking or unticking the Track Active item setting). – goamn Jul 11 '18 at 02:31