Vscode: open file instead of previewing file with quick open

When I open the command palette ( Ctrlor Cmd+ P), enter the file name and click Enter, the file will be automatically opened in preview mode.

Open file permanently

I want to be able to constantly open a file from the command palette. I know the settings "workbench.editor.enablePreviewFromQuickOpen", but this will disable the preview mode.

For example, selecting a file in the command palette and pressing Ctrl+ Enterwill open the file as Preview in a new Split view. I am looking for a similar shortcut to open the file forever.

Change 1

Bugfix: I meant the Quick view mode using Cmd+ P/ Ctrl+ P. The command palette is used to run commands and cannot search or open files.

+13
source share
3 answers

EDIT (I previously suggested a workaround, but there is such an opportunity!)

Just press the right arrow when your file is highlighted. The command palette remains where it is, and your file opens (in non-preview) in the background. You can do this as many times as you want.

+16
source

With quick browsing, select the file you want to open constantly

Fast access

Alt + Enter, .

: Visual Studio Code 1.19

@GunnerGuyven - Quick Look,

+3

What I was looking for was: Settings → Workbench → Editor Management

I set the parameter " Enable Previewand removed the Enable Preview from Quick Open" Enable Preview from Quick Openopen " menu , thanks to which VSCode behaves like st3

0
source

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


All Articles