Skip to content

How to Force VS Code to Open Files in New Tabs

Summary

This will be a quick article able forcing VS Code to use tabs when opening files.

Force VS Code to Use Tabs

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.

vscode-open-files-in-new-tab.png

Reference

https://www.brcline.com/blog/force-vscode-open-files-new-tab