views:

575

answers:

6

If so, is it a stack?
That is, can I:
GoToDefinition
GoTODefinition
GoToDefinition

and then pop back up the call stack?
None of the Edit.GoTo... commands do what I am looking for.
TIA.

+15  A: 

You can go to the last place you navigated to by doing CTRL+-

(That's the control key and the "minus" or "dash" key.)

Brian Sullivan
and yes, you can drill down and then drill up again
jvanderh
You can often also use your back and forward mouse buttons to do the same (at least I'm pretty sure mine were bound by default).
Ryan Versaw
Thanks, that is what I am looking for.Unfortunately, it breaks down when "Go to Definition" takes you to a xaml file; then, View.NavigateBackward does nothing. Interestingly, after using "Go to Definition", when I try to use View.NavigateBackward in the Command window, I get the message that the command is not available.
Number8
A: 

A third party tool like ReSharper would give you the functionality you require.

It is "da bomb!"

Navigation in the Solution explorer is a thing of the past.

Kindness,

Dan

Daniel Elliott
Not in the budget, and it doesn't play well with ViEmu.Great product, though.
Number8
FWIW, I'm using ReSharper alongside ViEmu, and they seem to be getting along fine. The developer of ViEmu takes special care to make sure it works with R#, since he knows that lots of people are using it.
Brian Sullivan
Maybe I'll give it another look...
Number8
+2  A: 

Tip by Brian Sullivan (Ctrl+-) works great.

You also can use a side button on your mouse (if your mouse has a side button and that button programmed for Back functionality in a browser).

More details in this post.

Vadim
A: 

If you have an MS mouse with the latest Intellipoint drivers installed, you can have program-specific commands associated with mouse buttons. Find out what the "Back" keyboard command is for your program. For VS .NET 2003/2005/2008 it is Ctrl+\ (control backslash) which is tied to View.NavigateBackward. Then go into the Control Panel for the mouse, click on the checkbox for "Enable program-specific settings" and then click on Settings.

Click on "Add" and pick your favorite Visual Studio and map Ctrl-\ to the left button.

Others programs of interest:

uVision3 IDE (the Keil compiler):    Alt-Left
Adobe Reader 9.0:                    Alt-Left
javaw (as in Eclipse):               Ctrl-F2
VB6:                                 Ctrl-Shift-F2

Actually, the Eclipse one isn't Ctrl-F2 but is something that cannot be mapped, so I added that mapping within Eclipse and then the new mapping in the mouse driver.

Hope that helps!

Harold Bamford