在Tools->Options->Projects and Solutions->General 下只要把”Track Active Item In Solution Explorer”选上就行。
参考:http://blchen.com/highlight-the-current-edited-file-in-vs-solution-explorer/