Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code, open file shortcut for double click

I am using the Ctrl+, keyboard shortcut to navigate between files. However when I select a file and press Enter it opens file in the existing tab with italics on the title. If I select another file using Ctrl+, and press enter it opens the other file on the same tab. Is there a keyboard shortcut to open the file in a new tab instead of the same tab?

like image 417
tmp dev Avatar asked Oct 19 '17 00:10

tmp dev


People also ask

What is Ctrl K in VS Code?

To launch the Define Keybinding widget, press Ctrl+K Ctrl+K. The widget listens for key presses and renders the serialized JSON representation in the text box and below it, the keys that VS Code has detected under your current keyboard layout.

What is Ctrl Shift P in VS Code?

You can define a keyboard shortcut for any task. From the Command Palette (Ctrl+Shift+P), select Preferences: Open Keyboard Shortcuts File, bind the desired shortcut to the workbench.

What does Ctrl B do in VS Code?

ctrl + b is bound to Add Function Breakpoint by default. You can edit the shortcuts from File->Preferences->Keyboard Shortcuts . Show activity on this post. File > Preferences > Keyboard Shortcuts will show you a list of shortcuts.


2 Answers

"workbench.list.openMode": "doubleClick"
like image 76
H.Ibrahim Avatar answered Oct 04 '22 05:10

H.Ibrahim


As you have seen, when you single-click a file it previews it in the current tab and you have to double-click it to open it properly for editing. You can disable this behaviour by going into Code's settings and specifying:

"workbench.editor.enablePreview": false

...in your user settings.

like image 35
John Topley Avatar answered Oct 04 '22 07:10

John Topley