I'm not asking for the option to automatically follow the current file in the solution explorer. This has been answered in this question and I have this option turned off because I hate the behavior.
I would like to have a shortcut (or macro, or ....) to jump to the file I'm currently editing in the solution explorer.
In Visual Studio's menu go to Tools > Options > Projects and Solutions. Then check "Track Active Item in Solution Explorer".
The default keyboard shortcut for opening/jumping to Solution Explorer is Ctrl + Alt + L .
Ctrl-Shift-F is used to find all the ocuurance of a string with in entire solution and display find result window as shown below. Ctrl-F is used to find a string in the current document, project and all open documents one by one.
To switch to specific files in the editorIn the upper right corner of the editor, choose the Active Files button, and then select a file from the list to switch to. On the menu bar, choose Window > Windows. In the list, select the file you want to view and then choose Activate.
In VS 2013 there is a built-in keyboard shortcut (CTRL+\, S)
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 and 2019 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With