October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk2 min

How to Set Up a Multi-Root Workspace in Visual Studio Code

Learn how to combine project folders in one VS Code window, save and reopen the workspace, configure roots, and understand trust restrictions.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A multi-root workspace lets you work with several distinct folders in one Visual Studio Code window. Add the folders, then choose File > Save Workspace As… to save the arrangement as a reusable .code-workspace file. Put window-wide settings in that file and keep folder-specific configuration in each root’s .vscode folder.

Create a multi-root workspace

You can add folders to a window using the menu, by dragging folders into Explorer, through the native open dialog, or from the command line. The menu workflow is straightforward when you already have one project open:

  1. Open a folder in VS Code.
  2. Choose File > Add Folder to Workspace and select another folder.
  3. Repeat to add any other related folders. Explorer displays each root separately.

Adding a second folder to a regular folder window creates an untitled workspace. You can work in it immediately, but it is not a saved workspace file until you save it. See the official Multi-root Workspaces guide for the documented ways to add roots.

Save and reopen the workspace

Choose File > Save Workspace As… and save a file with the .code-workspace extension. To reopen it later, double-click the file, use File > Open Workspace, or choose it from File > Open Recent.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Visual Studio Code Shortcuts Mouse mat for Designer, Quick Reference Guide, Cheats Sheet Mouse Pad, Office Supplies Keyboard Tips Gifts for Beginner Photographers Gifts Mouse pad KMH
  • Mouse pad is large enough to have a mouse, gaming keyboard and other desk items. Size: 31,5inc (80cm) x 11,8inch (30cm)
  • Making your mice glide on its surface effortlessly, which can provide optimum speed and accurate control during your working or gaming. While sturdy, it’s flexible enough to be rolled up for easy transport, to move around so you can work or game wherever you want.
  • Material feels soft in the hand , which can help to muffling noise when you type on the pads heavily
  • Mouse Mat rubber base keeps the entire surface in place preventing the cloth from bunching up to maintain smooth mouse movement across the entire desktop. Easy cleaning and maintenance.
  • If you have any issues with our gaming mouse pad,please let us know. Our service team are always here and ready to help you at any time.

A workspace file records its folder roots in a folders array. For example:

{
  "folders": [
    { "name": "Product", "path": "product" },
    { "name": "Documentation", "path": "docs" }
  ]
}

The optional name gives a root a clearer Explorer label. Each path can be relative to the workspace file or absolute. Relative paths are usually more portable if the workspace file and folders move together; absolute paths can suit fixed local folder locations but may not resolve on another computer. The VS Code documentation explains the workspace file structure in What is a VS Code workspace?.

Rank #2
Synerlogic Visual Studio Code Ultimate Keyboard Shortcut Reference Guide Mousepad, Premium Laminated Non-Slip Rubber (for PC)
  • 🖥✔️ EVERY ESSENTIAL SHORTCUT - With the SYNERLOGIC Visual Studio Code Reference Keyboard Shortcut Mousepad for Windows PC, you have the most important shortcuts conveniently placed right in front of you. Easily learn new shortcuts and always be able to quickly lookup commands without searching online.
  • 💻✔️ Work FASTER and SMARTER - Quick tips at your fingertips! This tool makes it easy to learn how to use your computer much faster and makes your workflow increase exponentially.
  • 🖥✔️ QUALITY GUARANTEE - We stand behind our product! It’s made with outstanding military-grade durable vinyl and the professional design gives our stickers and mousepads an OEM appearance. Our responsive and dedicated customer service team is here to promptly respond to your messages and resolve any issues you may have.
  • 💻 ✔️ From BASIC to ADVANCED - Whether you are a seasoned computer professional or a beginner, the SYNERLOGIC Mousepad will save you both time and frustration, guaranteed! You can easily reach a new level of computer proficiency using our convenient and affordable mousepad.
  • 💻 ✔️Compatible with any brand laptop or desktop running Windows Operating System. 🇺🇸PROUDLY MADE IN USA🇺🇸

Choose where settings belong

Use workspace settings for preferences that should apply across the window, and each folder’s .vscode directory for project-specific resource settings. In a multi-root workspace, folder-level settings are limited to resource settings so one root does not impose a window-wide editor preference on the others. Folder settings can override workspace and user settings; workspace settings override user settings.

  • Shared across roots: put workspace settings in the .code-workspace file.
  • Specific to one root: put eligible resource settings in that root’s .vscode configuration.

For the scope and precedence details, see VS Code’s Multi-root Workspaces documentation and Settings guide.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Configure debugging and tasks

Debug configurations

Define debug configurations in a root’s .vscode/launch.json or in the workspace file’s launch section. VS Code discovers configurations across roots and displays their folder context. When a configuration needs a path from a particular root, use a scoped variable such as ${workspaceFolder:Product}, where Product is the root name. See Debugging configurations for the documented configuration options.

Tasks

Tasks can live in a root’s .vscode/tasks.json or in the workspace file’s tasks section. Workspace-file task configurations use the shell or process task types; folder task files use version 2.0.0. The multi-root documentation describes the available placement and scope.

Rank #4
Synerlogic Visual Studio Code Ultimate Keyboard Shortcut Reference Guide Mousepad, Premium Laminated Non-Slip Rubber (for Mac)
  • 🖥✔️ EVERY ESSENTIAL SHORTCUT - With the SYNERLOGIC Visual Studio Code Reference Keyboard Shortcut Mousepad for Mac, you have the most important shortcuts conveniently placed right in front of you. Easily learn new shortcuts and always be able to quickly lookup commands without searching online.
  • 💻✔️ Work FASTER and SMARTER - Quick tips at your fingertips! This tool makes it easy to learn how to use your computer much faster and makes your workflow increase exponentially.
  • 🖥✔️ QUALITY GUARANTEE - We stand behind our product! It’s made with outstanding military-grade durable vinyl and the professional design gives our stickers and mousepads an OEM appearance. Our responsive and dedicated customer service team is here to promptly respond to your messages and resolve any issues you may have.
  • 💻 ✔️ From BASIC to ADVANCED - Whether you are a seasoned computer professional or a beginner, the SYNERLOGIC Mousepad will save you both time and frustration, guaranteed! You can easily reach a new level of computer proficiency using our convenient and affordable mousepad.
  • 💻 ✔️Compatible with any brand laptop or desktop running Mac Operating System. 🇺🇸PROUDLY MADE IN USA🇺🇸
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Review trust before running project content

Adding a folder to a trusted multi-root workspace can trigger a trust prompt. If the new folder is not trusted, VS Code may put the entire workspace into Restricted Mode. Features that can execute project content—including tasks and debugging—are then disabled or limited. Review unfamiliar project files and scripts before trusting the folder or running its tasks. See Workspace Trust for details.

Best Value
Visual Studio NEW Keyboard Labels Shortcuts
  • The Best GIFT for any occasion
  • High-quality stickers for different keyboards Desktop, Laptop and Notebook
  • The Visual Studio stickers can easily transform your standard keyboard into a customised one within minutes, depending on your own need and preference.
  • Stickers are made of high-quality non-transparent - matt vinyl, thickness - 80mkn, typographical method.
  • The Visual Studio keyboard stickers are designed to improve your productivity and to enjoy your work all the way through.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Shenzhen desk3 min
    HONOR Expands Beyond Smartphones With Humanoid Robot RevealHONOR said it unveiled its first humanoid robot at MWC 2026 and named shopping assistance, workplace inspections, and supportive companionship as intended uses. Later Robotics D1 claims and a reported…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.