Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio shortcut

Is there a Visual Studio shortcut to highlight the current file in Solution Explorer?

like image 449
BrokeMyLegBiking Avatar asked Aug 31 '10 14:08

BrokeMyLegBiking


People also ask

What is Ctrl F5 in Visual Studio?

F5 is used to start your project in debug mode and Ctrl-F5 is used to start your project without debug mode.

How do I open Visual Studio?

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.

What does Ctrl t'do in Visual Studio?

New! Save questions or answers and organize your favorite content. Learn more.


2 Answers

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.

like image 56
Ahmad Mageed Avatar answered Sep 28 '22 02:09

Ahmad Mageed


Tools – Options – Projects and Solutions – Track Active Item in Solution Explorer

like image 22
Johnny Saxon Avatar answered Sep 28 '22 02:09

Johnny Saxon