Make Solution Explorer to follow the active file

In Visual Studio, you can make the Solution Explorer window track the active file you’re working on. To enable/disable this feature, toggle the following setting: Tools -> Options -> Projects and Solutions -> “Track Active Item in Solution Explorer”.