Visual Studio 2013, 2015, 2017, 2019 and 2022+
One option is to bind 'View.TrackActivityInSolutionExplorer' to a keyboard short-cut, which is the same as Tools → Options → Projects and Solutions → Track Active Item in Solution Explorer'
If you activate the short-cut twice the file is selected in the solution explorer, and the tracking is disabled again.
Visual Studio 2013, 2015, 2017
There is now a feature built in to the Visual Studio 2013 Solution Explorer called Sync with Active Document. The icon is two arrows in the solution explorer, and has the hotkey Ctrl + [, S to show the current document in the solution explorer. Does not enable the automatic setting mentioned above, and only happens once.
This icon was then subsequently dropped again in VS 2019 and 2022.