VS Code allows you to open multiple files at once using multiple tabs. This guide shows you how to use this feature and work on multiple tabs simultaneously within the Visual Studio Code interface.
How to open multiple tabs in VS Code
Since 2016, VS Code has supported opening multiple files in separate tabs by default.
Method #1: Launch new files from the Explorer pane
In the Explorer pane on the left, navigate to the directory where you have multiple projects. Then, double-click each file you want to open. They will automatically be added to a new tab.

Method #2: Use a shortcut (Mac and Linux only)
- macOS: Command + Control + W
- Linux: Meta + Control + W
- Windows: Not supported
Solutions if multiple tabs are still not opening
Enable opening multiple tabs in VS Code’s settings
- From the top-level File menu, select Preferences. From the sub-menu, choose Settings. Alternatively, you can press Ctrl + , to quickly open Settings.
Open the Settings window. - Search “Launch” in the search bar. Next, choose the Workspace tab and click on Edit in settings.json option.
Search and then open the Launch.JSON file. - Settings.json file will open in a new tab. Click on launch and select workbench.settings.useSplitJSON.
Open the Workbench Settings. - Add the following code in the editor:
"workbench.editor.showTabs": true,
"workbench.editor.enablePreview": true,
Type the following code in the JSON file. - Save the file by pressing Ctrl + S.