Is there a Visual Studio shortcut to highlight the current file in Solution Explorer?
F5 is used to start your project in debug mode and Ctrl-F5 is used to start your project without debug mode.
For other version, you can have a look at the VS version folder. Meanwhile, you can also go to the installation folder like C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE and you can find the devenv.exe and directly double click it, it will start the VS normally.
New! Save questions or answers and organize your favorite content. Learn more.
You can enable this option to always highlight the current (active) file:
Tools -> Options -> Projects and Solutions -> Track Active Item in Solution Explorer
To my knowledge there's no shortcut to go to it directly, however you could bind your own key combination by going to Tools -> Options -> Environment -> Keyboard
, search for View.TrackActivityInSolutionExplorer
then assign a shortcut to it. The downside to this approach is that it toggles the option on and off rather than perform a one time highlight of the active file.
Alternately, you can use a macro to accomplish what you originally asked about. This blog post provides such a macro: Visual Studio Macro: Locate Item in Solution Explorer on Demand.
Tools – Options – Projects and Solutions – Track Active Item in Solution Explorer
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