Understanding the Navigation Stack (C#)
Keyboard: CTRL + SHIFT + 8 (backward); CTRL + SHIFT + 7 (forward)
Command: View.PopBrowseContext; View.ForwardBrowseContext
Versions: 2008,2010
Published: 10/18/2010
Code: vstipEdit0078
Did you know there is a dedicated stack available just for going to definitions? Here are a couple of examples:
If you are looking at, say, a method call:
And press F12 to go to its definition:
How do you go back? Easy! Just press CTRL + SHIFT + 8 and it will take you back, no problem:
Pressing CTRL + SHIFT + 7 will move you to the definition again:
So what's going on? Well every time you go to a definition it keeps track of where you come from. This will work every time you go to definition so you can always find your way back. Here is another example:
F12 (go to definition):
From here you could press CTRL + SHIFT + 8 to go back. But what if you want to keep digging into definitions? No problem! Click in the GetNumber method:
And press F12:
Now, if you want to go back, press CTRL + SHIFT + 8:
Then CTRL + SHIFT + 8 again:
Comments
Anonymous
October 28, 2010
CTRL+SHIFT+8 isn't working for me in VB web siteAnonymous
October 28, 2010
I later learned I was looking for View.NavigateBackwards CRTL+- which works in the text editor