In Visual Studio 2010 the default functionality meant that when you made a file Active, it was automatically selected in the Solution Explorer tree (but only if the containing folder was open).

In Visual Studio 2015, this functionality is turned off by default. Instead, you can also do it on a per file basis using the ‘Sync with Active Document’ button at the top of the Solution tree or by pressing Ctrl+[ followed by S.

However, if you like this to always occur, you need to turn it on in the options as follows:

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

The good news is that this appears to find the file in the solution tree even when the containing folder is closed.

Not sure why they turned it off? Maybe performance issues on large projects?

 

#

posted on Wednesday, September 2, 2015 1:58 PM
Filed Under [ Visual Studio ]

Comments

Gravatar
# re: VS2015 Automatically Sync Open File in Solution Tree
posted by James
on 12/1/2015 3:13 PM
That's been driving me nuts. Thanks.

Post A Comment
Title:
Name:
Email:
Comment:
Verification: