Go to the definition and go back to the link in the Studio visual code.

I am currently using VSCode and trying to use a shortcut F12that leads me to an object / function definition. When I want to return to the link, I cannot find the right way to do this. With the VS community, I used Shift+ F12.

I tried different combinations, such as Alt+ F12or Shift+ F12, but all I get is a short definition of an element that is not useful at all; it's just a popup showing the same element in the same file as me. I saw the answers to this question, but related to VS 2010, which are no longer applicable or do not work with VSCode.

Question : What is the shortcut F12to go back to when you used to go to the definition?

+33
source share
8 answers

For macOS, the default is ⌃-( Ctrl+ -). And for Windows: ( Alt+ LeftArrow)

+27
source

According to the vcode documentation page, the navigateBack action is Ctrl+ Alt+ by default -.

In my keybindings.json file, I bounce it to Ctrl+ -using:

{ "key": "ctrl+-", "command": "workbench.action.navigateBack" }

+26
source

Shift + F12 . . , (), . , , , - Shift + F12. ? , , .

:

v1.29 . . .

List All References Shift + Alt + F12

, , , . F4 Shift + F4 , .

+12

Keyboard Shortcuts, .

>

Go, Go Back Go Forward.

macOS:

: ⌃- (Ctrl + -)

: ⌃⇧- (Ctrl + shift + -)

[
  {
    "command": "workbench.action.navigateBack",
    "key": "ctrl+-"
  },
  {
    "command": "workbench.action.navigateForward",
    "key": "ctrl+shift+-"
  }
]
+9

Alt + Left arrow Go, Back.

+6

- Ctrl + Alt + Click, . Ctrl + F4.

+5

F12

Ctrl + F2

+2

goto--.

, , goto Alt + ], , Alt + [. (Alt + ).

+2

Source: https://habr.com/ru/post/1670959/


All Articles