Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

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.

To do this on MacOS VS Code

  • ^+- to go backward.

  • ^ + shift + - to go forward.

Note that^ is control on your keyboard.

Full list of other mac keyboard shortcuts here: https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top