A2oz

How Do I Open Multiple Folders in Visual Studio Code?

Published in Visual Studio Code 2 mins read

You can open multiple folders in Visual Studio Code using the "File > Open Folder..." menu option or by dragging and dropping folders into the VS Code window.

Opening Multiple Folders using the File Menu:

  1. Open the File Menu: Click on "File" in the top menu bar.
  2. Select "Open Folder...": Choose "Open Folder..." from the dropdown menu.
  3. Select the First Folder: Navigate to the first folder you want to open and select it.
  4. Select "Open Folder...": Repeat steps 1-3 to open a second folder.
  5. View the Folders: You will see the folders listed in the "Explorer" pane on the left side of the VS Code window.

Opening Multiple Folders by Dragging and Dropping:

  1. Open VS Code: Start Visual Studio Code.
  2. Locate Folders: Find the folders you want to open on your computer.
  3. Drag and Drop: Drag the folders from your file explorer and drop them into the VS Code window.
  4. View the Folders: You will see the folders listed in the "Explorer" pane on the left side of the VS Code window.

Working with Multiple Folders in VS Code:

  • Switching Between Folders: You can easily switch between the opened folders using the tabs at the top of the editor window.
  • Separate Workspaces: You can save your opened folders as a "Workspace" by clicking "File > Save Workspace As...". This allows you to easily reopen all the folders together later.
  • Using the "Workspace" Feature: You can also open a "Workspace" by clicking "File > Open Workspace..." and selecting the saved workspace file.

Related Articles