How to force VSCode to Open Files in a New Tab

Sharing is Caring

Visual Studio Code is a fantastic open source editor from Microsoft. By default, in Visual Studio Code, files open in the same tab.

This is because of “Preview Mode” which is designed to allow you to quickly view files.

To stop files from going into preview mode, and always open a new tab go to File -> Preferences -> Settings (or Ctrl + ,)

And add the following to “Users Settings”

"workbench.editor.enablePreview": false

Make sure you include a comma if there’s other settings as it has to be valid json.

VS Code Open Files in New Tab

Author: Brian Cline

Brian is a programmer living in Niagara Falls with ten years of development experience. He is passionate about automation, business process re-engineering, and gamification. For the last six years or so, he has been working with Salesforce and JavaScript.

Related Posts

Sharing is Caring