views:

36

answers:

4

I've seen references to the ability (in VS08) to jump back and forth between the various places that i've been editing. E.G. I use 'Go to Definition' to inspect a method - what's the keyboard shortcut to return to where I was?

thx

A: 

Ctrl-Shift-Tab takes you to the previous document. You can Go To Definition and then hit Ctrl-Shift-Tab to go back. (Also, Ctrl-Tab takes you to the next document.)

Frank T. Icali
Ok...that steps thru open documents. I thought there was a way to move between recent edit points. For example...in the case of 'Go To Definition' - if the given definition was in the same document i wouldn't want 'previous document', i'd want 'previous place i edited'.
justSteve
+2  A: 

Ctrl-- (Ctrl and the minus key) goes back to the place from where the latest navigation command (e.g. Go-to-definition) was launched.

Xavier Nodet
Thanks Xavier... I never knew that one, tons more useful than ctrl +K, K.
Mark Pearl
Thankx - one would like to think Ctrl-+ would allow forward movement letting me jump back and forth thru the stack of nav commands. Not so?
justSteve
A: 

I think the functionality you are wanting can be achieved with bookmarking.

So, before you go to a definition, you could bookmark your spot.

The keyboard shortcuts for bookmarks are as follows:

Set/Unset Bookmark (Ctrl +K, K) Next Bookmark (Ctrl +K, N)

A few other shortcuts can be found at this blog

Mark Pearl
A: 

To go back to the previous place I edited, I usually hit Ctrl-Z then Ctrl-Y (Undo, Redo).

Xavier Nodet