Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a "back" button/hotkey for navigation in Visual Studio 2008?

I jumped to a line in a code file in Visual Studio using "Go to definition". I am now lost in the file and I want to go back to the line I was at before. How do I do it?

like image 661
Jader Dias Avatar asked Jul 08 '09 19:07

Jader Dias


People also ask

How do you go down a line in Visual Studio?

How do I move a line in Visual Studio 2019? ALT + UP/DOWN will move a line up or down.

How do you get to the last position in Visual Studio?

Go to last edit location: (Ctrl + Shift + Backspace) [different from navigate backward, which just goes to last cursor location -- this goes to last place where code was edited] Multi-caret editing: (Ctrl + Alt + Click) [allows you to go to multiple locations and add text, for example]

How do I enable keyboard shortcuts in Visual Studio?

On the menu bar, choose Tools > Options. Expand Environment, and then choose Keyboard.


3 Answers

You can hit Ctrl - (Ctrl and the minus sign) I believe. Also, Ctrl Shift minus navigates forward.

Depending on your mouse software, you should be able to map those keyboard shortcuts to your mouse's back/forward buttons. You can typically do this with gaming mice, and there's probably third-party gaming software that lets you do it also. Mapping "Find all references" to a button is great too.

like image 142
Jon Onstott Avatar answered Oct 04 '22 04:10

Jon Onstott


You can also use you mouse back and forward navigation buttons if you have such a device.

Please note that if you are using a Logitech device you need to launch SetPoint with the same privileges as Visual Studio. In other words, if you launch Visual Studio as admin, you need to launch SetPoint as admin too for the Back and Forward to work properly.

like image 34
just1lucky Avatar answered Oct 04 '22 03:10

just1lucky


I realize this is an old thread, but since it was the first link I came across from a Google search, I'll mention what I found:

In Visual C# 2010 Express, under Tools -> Settings, there is a "Basic Settings" option and an "Expert Settings" option. (Basic Settings is selected by default.) If you select Expert Settings, the standard toolbar will have back/forward buttons.

like image 21
Benny Avatar answered Oct 04 '22 03:10

Benny