Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyboard shortcut to take file out of preview mode in VSCode

If I quick open a file using the quick open menu, is there a keyboard shortcut that will take the opened file outside of preview mode so that when I open a new file it won't replace the currently open one?

(I'm looking for a keyboard shortcut as opposed to double-clicking the filename or tab in order to keep my workflow keyboard oriented)

like image 711
M.K. Safi Avatar asked Aug 29 '17 18:08

M.K. Safi


2 Answers

Try the View: Keep Editor command (default shortcut Ctrl+K, Enter):

Note: this shortcut is a chord, meaning that Enter must be pressed after releasing Ctrl+K.

like image 124
Gama11 Avatar answered Sep 24 '22 04:09

Gama11


As of v1.19 (released in December 2017) Alt+Enter opens the file (after Ctrl+P) NOT in preview mode but in a "permanent", touched status.

Related question: How do I configure Visual Studio Code to open files always in a new tab?

like image 27
Mark Avatar answered Sep 25 '22 04:09

Mark