Reputation: 64737
It returns your caret(aka cursor) to the place where you stopped writing code(very useful for fast code browsing)
Upvotes: 8
Views: 677
Reputation: 6867
In addition to what is mentioned in the other answers, you can use the undo/redo trick. As long as you want to navigate to the last edit position in the current file, a quick undo/redo will take you there.
Upvotes: 2
Reputation: 25819
You are looking for View.NavigateBackward
. The actual keystroke depends on your personal settings, but it's probably Ctrl + -. If not, go to Tools/Customize/Commands/Keyboard
to find out what it is for your setup.
Upvotes: 1
Reputation: 12142
ReSharper has Ctrl+Shift-Backspace to return to previous editing position. Or Ctrl+Shift+, (Comma) to browse some recent edition places.
Upvotes: 3
Reputation: 112815
Ctrl + - will move to the previously browsed line of code (Ctrl + Shift + - will move forward). You can download PDF versions of all the default keybindings in Visual Studio 2010 from this page.
Upvotes: 7
Reputation: 18286
There are ctrl+- and ctrl+shift+- That navigate backward and forward.
Upvotes: 0