18 June 2017

track active item in Visual Studio Solution explorer

If you are working on a BIG solution in Visual Studio, then click the file tab doesn't highlight the file in Solution Explorer by default. This causes you manually going through & searching the solution explorer tree view to find the find file. This task can be daunting every time when you want to do this, especially when you are new to .NET solution and the solution is BIG with more projects added into it.

This problem can be easily solved by enabling "Track Active Item In Solution Explorer" option. Post enabling Track Active Item In Solution Explorer and switch to any file tab in visual studio, the file will be automatically highlighted in the Solution Explorer. So it will become easy to find where in the Solution Explorer the file is located.

How to enable this hidden gem "Track Active Item In Solution Explorer"

  1. Click "Tools" menu in Visual Studio and then select "Projects and Solutions" in tree view located in left hand side.
  2. Locate check box "Track Active Item In Solution Explorer", select the option and click OK button to save the changes.

Visual Studio Tool Window showing Track Active Item In Solution Explorer option

Track Active Item In Solution Explorer option
Happy coding!

No comments:

Post a Comment