Auto select file in Solution Explorer from its open tab

Viewed 131584

Normally, many files in Visual Studio 2010 are opened in many tabs, while massively working on a project. Many times, I find myself right-clicking on a tab title and searching for Show/Select/Scroll-to this file in Solution Explorer, and I can't find it.

Is there a way to automatically select an opened file in Solution Explorer?

13 Answers

The best option now is to install the Microsoft Visual Studio add on called Productivity Power Tools.

With this comes "Solution Navigator" (alternative to Solution Explorer, with a lot of benefits) - which then you can use to filter the files to only show "Open". You can even filter files to show "Edited" and "Unsaved".

simply Tools--> Options--> Projects and Solutions--> Track Active Item in Solution Explorer

In VS 2019 select Tools > Options and then tick "Track Active Item in Solution Explorer" enter image description here

Related