Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the shortcut for CTRL + CLICK in Visual Code?

What is the shortcut key to Ctrl+Click (Follow Link) in Visual Code? If it doesn't have one, is there any way to add it?

enter image description here

In Eclipse, if I press F3 I can open the file, like Ctrl+Click

like image 515
Passella Avatar asked Apr 16 '18 15:04

Passella


2 Answers

The command is Open Link (editor.action.openLink) and, if doesn't have any key combination assigned, you can assign one by using the Preferences -> Keyboard Shortcuts command from the menu.

like image 57
axiac Avatar answered Nov 05 '22 09:11

axiac


Do Command/Control P > keybindings.json and insert:

[
    ...,
    {
        "key": "ctrl+f12",
        "command": "editor.action.openLink"
    }
]

to set Ctrl F12 to open the link under the cursor.

like image 31
Denis Howe Avatar answered Nov 05 '22 09:11

Denis Howe