user1837779
user1837779

Reputation: 295

How to config vscode cmd+p to open files in a new tab

Whenever i'm searching for a file in project using cmd+p and opening the file hitting enter its opens. If i search again using cmd+p then the file is opened in the same tab. How to open files in different tabs.

VSCODE - Version 1.6.1 (1.6.1)

Upvotes: 1

Views: 665

Answers (1)

kwood
kwood

Reputation: 10954

That's because by default the file first opens in preview mode. As long as you don't edit the first file or double click its tab, the tab will be reused.

If this behaviour is not you thing, you can disable it with the following setting:

"workbench.editor.enablePreviewFromQuickOpen": false

If you want to disable preview mode global (as in: disable it when you click a file from the side pane), there's:

    "workbench.editor.enablePreview": false

Upvotes: 3

Related Questions