I jumped to a line in a code file in Visual Studio using "Go to definition". I am now lost in the file and I want to go back to the line I was at before. How do I do it?
“back” button/hotkey for navigation in Visual Studio 2008
visual-studio-2008-sp1
Best Answer
You can hit Ctrl - (Ctrl and the minus sign) I believe. Also, Ctrl Shift minus navigates forward.
Depending on your mouse software, you should be able to map those keyboard shortcuts to your mouse's back/forward buttons. You can typically do this with gaming mice, and there's probably third-party gaming software that lets you do it also. Mapping "Find all references" to a button is great too.