There is a command that does exactly what you ask: View.PopBrowseContext . It always returns you to the place where you pressed F12. It does not take into account any changes or changes that you made after you pressed F12.
By default, in C # layout, it is displayed on Ctrl+Chift+8 , but you can assign it to any hotkey.
By the way, in VS2015 they decided to get rid of this team.
SergeyT Aug 03 '15 at 21:52 2015-08-03 21:52
source share