Click on the Tools → Options menu. Select the Projects and Solutions → General option page.
Make sure “Track active item in Solution Explorer” is checked. That should do it.
Click on the Tools → Options menu. Select the Projects and Solutions → General option page.
Make sure “Track active item in Solution Explorer” is checked. That should do it.