After "Go to Definition", is there a command to return to where you came from?

Visual Studio-2010Visual StudioVisual Studio-2008

Visual Studio-2010 Problem Overview


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.

Visual Studio-2010 Solutions


Solution 1 - Visual Studio-2010

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

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

Solution 2 - Visual Studio-2010

The correct way to navigate this stack is with View.ForwardBrowseContext and View.PopBrowseContext commands. In the default C# schema they are bound to Ctrl+Shift+7 and Ctrl+Shift+8 respectively.

Solution 3 - Visual Studio-2010

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).

Solution 4 - Visual Studio-2010

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!

Solution 5 - Visual Studio-2010

In Microsoft Dev Studio it was always mapped to CTRL+* (The * on the numerical keypad) but not in C# Express, I notice. Here it's Ctrl+Shift+8, as already noted.

Solution 6 - Visual Studio-2010

Navigate backward and Navigate forward is the right choice. These can be found in toolbars.

Solution 7 - Visual Studio-2010

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

Solution 8 - Visual Studio-2010

I just use the back button on my mouse.

Has always worked by default for me.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionNumber8View Question on Stackoverflow
Solution 1 - Visual Studio-2010Brian SullivanView Answer on Stackoverflow
Solution 2 - Visual Studio-2010Borislav IvanovView Answer on Stackoverflow
Solution 3 - Visual Studio-2010VadimView Answer on Stackoverflow
Solution 4 - Visual Studio-2010Harold BamfordView Answer on Stackoverflow
Solution 5 - Visual Studio-2010Steve HowellView Answer on Stackoverflow
Solution 6 - Visual Studio-2010zeeshanView Answer on Stackoverflow
Solution 7 - Visual Studio-2010Daniel ElliottView Answer on Stackoverflow
Solution 8 - Visual Studio-2010Neil NView Answer on Stackoverflow