Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Whats the visual studio equivalent to eclipse alt + arrow Left

From Eclipse i'm confortable with

F3 to enter a method and ALT + <-

In visual studio (2010) its F12 to enter the method, but how do i get back to the call, where i jumped in?

like image 422
MemLeak Avatar asked Mar 17 '14 08:03

MemLeak


People also ask

How do I ALT select a code in Visual Studio?

You can select blocks of text by holding Shift+Alt (Shift+Option on macOS) while you drag your mouse. A separate cursor will be added to the end of each selected line. You can also use keyboard shortcuts to trigger column selection.

How do I enable shortcut keys in Visual Studio?

On the menu bar, choose Tools > Options. Expand Environment, and then choose Keyboard. Optional: Filter the list of commands by entering all or part of the name of the command, without spaces, in the Show commands containing box. In the list, choose the command to which you want to assign a keyboard shortcut.


2 Answers

In my VS Code V 1.20.1 the shortcut is:

Ctrl + Alt + - for backward.

For going forward is Ctrl + Shift + -.

We can change these shortcuts just like in Eclipse by selecting the menu File -> Preferences -> Keyboard shortcuts, and type on the search field for Go Back or Go Forward.

like image 33
ywiyogo Avatar answered Sep 28 '22 00:09

ywiyogo


You can use Shift + F12 to list all references, and the original method will be listed.

Ctrl + - will navigate backward, whilst Ctrl + Shift + - will navigate forward (in the context of where you were working in your code).

Ctrl + , will allow you to search for a method to navigate to.

like image 163
Kevin Hogg Avatar answered Sep 28 '22 01:09

Kevin Hogg