Visual Studio: Shortcut to scroll solution explorer to current file
In VS 2013 there is a built-in keyboard shortcut (CTRL+\, S)
- Press CTRL+backslash
- Release both keys
- Press the S key
Or click the button highlighted in the image bellow.
One also has the option to customize the keyboard shortcut if you don't like the default combination :)
In Visual Studio 2015, 2017, 2019 and 2022 you can press Ctrl + [ and then s.
This will highlight the file currently being edited in Solution Explorer.
This can be configured via the following keyboard command: SolutionExplorer.SyncWithActiveDocument
To reconfigure, navigate to Tools -> Options -> Environment -> Keyboard