Search for Go , and it'll show the Go Back and Go Forward shortcuts. Show activity on this post. Shift + F12 should be working for you.
In Visual Basic code files, use these commands to move the insertion point to different methods. Choose Edit > Next Method or Edit > Previous Method.
You can go back to your previous location with the Go > Back command or Ctrl+Alt+-. You can also see the type definition if you press Ctrl (Cmd on macOS) when you are hovering over the type.
Ctrl + - : (that's Ctrl and Minus) will navigate back (maps to View.NavigateBackward
).
See this list of pre-defined keyboard shortcuts on MSDN.
@Oded is correct, but wait, there's more!
While Ctrl- and CtrlShift- are indeed the shortcuts to navigate to the previous/next cursor position, in this particular case (i.e., going back after F12 or similar) this shortcut might be more useful:
CtrlShift8 (=View.PopBrowseContext
)
It will jump back to the place where you pressed F12, ignoring any cursor locations after you pressed F12.
(NOTE: currently using VS 2013, and hoping this shortcut entry also exists in VS 2010...)
In Visual Studio Code, you can also use Alt + Left-Arrow to return to your original location in the source code after navigating with F12.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With