views:

52

answers:

4

In studio when going to definition by pressing F12, it takes you to definition. Is there any way to go back to where you came from?

This is specially annoying when you have definition within same file. If it's in another file then it's ok Ctrl+Tab take you back to previous window. But when it's in same file then have to find where you came from and go there.

+4  A: 

Try Ctrl plus the - key

Raj Kaimal
+2  A: 

Ctrl -> '+' -> '-' I searched for a long time till i found that one, and I can't stop using it since!! :)

gillyb
+3  A: 

As others mention, use Ctrl-Minus. This is the View-NavigateBackward shortcut in Visual Studio's default key mapping scheme, and can be mapped to any key combination you like from Tools->Options->Keyboard. I like Alt-LeftArrow myself, to match typical web browser use.

Note that, for most five-button mice, the navigate-left button will also do this.

Michael Petrotta
+3  A: 

 Ctrl  +  - 

rockinthesixstring