8

It returns your caret(aka cursor) to the place where you stopped writing code(very useful for fast code browsing)

IAdapter
  • 62,595
  • 73
  • 179
  • 242

5 Answers5

7

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.

Donut
  • 110,061
  • 20
  • 134
  • 146
  • @Itay Of course :) Take a look at this thread on meta for a good laugh: http://meta.stackexchange.com/questions/1939/kbd-elements-are-way-intrusive – Donut Feb 06 '11 at 17:03
3

ReSharper has Ctrl+Shift-Backspace to return to previous editing position. Or Ctrl+Shift+, (Comma) to browse some recent edition places.

Ilya Ryzhenkov
  • 11,782
  • 1
  • 40
  • 50
2

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.

Noah Richards
  • 6,777
  • 2
  • 31
  • 28
1

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.

I. J. Kennedy
  • 24,725
  • 16
  • 62
  • 87
0

There are ctrl+- and ctrl+shift+- That navigate backward and forward.

Itay Karo
  • 17,924
  • 4
  • 40
  • 58