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

Sharing is Caring

Brian is a software architect and technology leader living in Niagara Falls with 13+ years of development experience. He is passionate about automation, business process re-engineering, and building a better tomorrow.

Brian is a proud father of four: two boys, and two girls and has been happily married to Crystal for more than ten years. From time to time, Brian may post about his faith, his family, and definitely about technology.