Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to go back and forth in visual studio 2010 [closed]

In xcode and in eclipse there is a version where we can go back and forth to our last cursor location.

For example, say I am editing one function. Then I go to the definition of that function. Then I want to go back to the first function.

Say I am editing A() that call B(). In A(), I go to the definition of B() and I want to go back to editing A() again.

How do I do so?

like image 800
user4951 Avatar asked Oct 16 '11 02:10

user4951


People also ask

How do I go back and forth in Visual Studio?

By default, Alt+Left navigates back, and if you remove the Alt+Right shortcut for Edit. CompleteWord in Microsoft Visual Studio, Alt+Right navigates forward.

How do I go back to the previous method in Visual Studio?

In Visual Basic code files, use these commands to move the insertion point to different methods. Choose Edit > Next Method or Edit > Previous Method.

How do I navigate back in Visual Studio Code?

Select a symbol then type F12. Alternatively, you can use the context menu or Ctrl+click (Cmd+click on macOS). You can go back to your previous location with the Go > Back command or Ctrl+Alt+-.


2 Answers

Use Control-minus (Ctrl- "-"). See here

If it doesn't work, it's probably because you use a different key binding. Go to Tools->Options->Environment->Keyboad->"View.NavigateBackwards" and add your key (Don't forget to Apply !)

like image 85
Otávio Décio Avatar answered Sep 18 '22 08:09

Otávio Décio


Use the "Ctrl"-"Shift"-"-" to move forward after you have used "Ctrl"-"-" to move back.

see Microsoft blog

like image 45
Tarun Arora Avatar answered Sep 19 '22 08:09

Tarun Arora