Visual Studio 2010 shortcut to go back from definition [duplicate]
In Visual 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.
Try the key combination: Ctrl + -.
As others mention, use Ctrl + -. 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+← myself, to match typical web browser use.
Note that, for most five-button mice, the navigate-left button will also do this.
Ctrl + -
Ctrl -> '+' -> '-' I searched for a long time till i found that one, and I can't stop using it since!! :)
精彩评论