Reputation: 12756
When I open up the Command Palette (Ctrl or Cmd + P), type in a filename and hit Enter, the file will automatically be opened in Preview mode.
What I want is to have an option to open a file permanently from the Command Palette. I am aware of the "workbench.editor.enablePreviewFromQuickOpen"
settings, but that will disable Preview mode.
For example, selecting a file in the Command Palette and hitting Ctrl + Enter will open the file as Preview in a new Split view. I am looking for a similar shortcut to open a file permanently.
Correction: I meant the Quick Look mode using Cmd + P / Ctrl + P. The Command Palette is used to run commands, and cannot search or open files.
Upvotes: 31
Views: 11270
Reputation: 4337
In Visual Studio 2017: Uncheck all checkboxes of menu Debug > Options, section Environment > Tabs and Windows > Preview Tab
Upvotes: 0
Reputation: 541
Just press the Right arrow when your file is highlighted. The Command Palette stays exactly where it is and your file opens (in non-preview) in the background. You can do this as many times as you like.
Upvotes: 30
Reputation: 14469
What I was looking for was: Settings -> Workbench -> Editor Management
I set Enable Preview
and unset Enable Preview from Quick Open
which makes VSCode behave like st3.
Upvotes: 28
Reputation: 12756
With Quick Look open, select the file you wish to open permanently
then press Alt + Enter to open the file permanently.
Note: this shortcut only works in Visual Studio Code 1.19 and above
@GunnerGuyven's answer also work - select file in Quick Look then →
Upvotes: 12