How To Open Multiple Tabs In Visual Studio Code

VS Code allows you to open multiple files at once using multiple tabs. This guide shows you how to open multiple tabs in Visual Studio Code. Before we begin, make sure to have your project opened in VS Code.

Step 1: Make required changes in VS Code settings

Before we begin opening multiple tabs, make sure you enable the option of opening multiple files at once. Follow these steps:

  1. From the top-level “File” menu, select Preferences, and from the sub-menu, select Settings. Alternatively, you can press Ctrl + , to open Settings.

    Open the Settings window.
  2. Search “Launch” in the search bar. Choose the Workspace tab and click on the Edit in settings.json option.

    Launch JSON File
    Search and then open the Launch.JSON file.
  3. Settings.json file will open in a new tab. Click on the launch keyword and select workbench.settings.useSplitJSON.

    Workbench Settings
    Open the Workbench Settings.
  4. Add the following code in the editor:
    "workbench.editor.showTabs": true,
    "workbench.editor.enablePreview": true,

    Type the following code in the JSON file.
  5. Save the file by pressing Ctrl + S

Step 2: Opening Multiple Files

Now that we have enabled support for opening multiple files, we can use our mouse to open multiple files. Double-click the files you want to open in a new tab.

Multiple Files
Double-click on the files you want to open in the new tab.

Was this article helpful?

Leave a Comment