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

A VS Code multi-root workspace lets you open several distinct folders in one editor window. Use one when related codebases or project materials—such as application source and documentation—need to be navigated, searched, debugged, or managed together. If one folder already contains everything you need, opening that folder is usually simpler.

What a multi-root workspace is

VS Code defines a workspace as one or more folders open in a window. A typical workspace contains one folder; a multi-root workspace contains multiple folders, called roots, in the same window. The roots remain separate folders on disk rather than being merged into a new directory.

You can use the combined view to work across roots in the Explorer, search across the workspace, and see source-control repositories in one place. A saved workspace can also bring together settings, extension recommendations, tasks, and debug configurations. It is a way to coordinate a working context, not a requirement for every project.

Choose the arrangement that fits the work

Arrangement Best fit Trade-off
Open one folder The useful files for a project share one root. It is the simplest arrangement, with the least workspace-level configuration to manage.
Multi-root workspace Related projects or materials live in separate folders and benefit from a shared window. More roots make clear names and careful settings scope more important.
Several saved workspace files for one repository Different roles or tasks need different focused views of the same repository. Each saved view is another configuration to maintain.

Ask whether the folders are related, whether they live under one parent directory, and whether you need shared search, source control, tasks, or debugging. If seeing everything together improves navigation, multi-root can help. If the combined Explorer becomes cluttered or the folders have little to do with one another, separate windows may be clearer.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Add folders and save the workspace

  1. Open a starting folder. Use the normal folder-opening workflow to begin with one project root.
  2. Add another root. Choose File > Add Folder to Workspace and select the folder. Repeat for each related folder you want in the window.
  3. Make roots recognizable. If on-disk folder names are ambiguous, assign descriptive display names so it is clear which project a task or configuration refers to.
  4. Save the arrangement when you need it again. Save it as a .code-workspace file. That file records the roots and can also hold workspace settings, extension recommendations, tasks, and launch configurations.
  5. Use shareable paths deliberately. Relative folder paths are preferable when the workspace file will be shared and collaborators can keep the same folder layout. If the locations differ, check the paths before relying on the file on another machine.
  6. Remove a root when it no longer belongs. Use the folder’s context menu in the Explorer to remove it from the workspace; this removes it from the workspace view, not from disk.

The VS Code command-line interface also supports adding folders to the last active VS Code instance; opening multiple folders from the command line creates a multi-root workspace. This can be useful when a script or routine needs to open a known set of folders, while the menu is straightforward for an interactive setup.

Understand settings scope before configuring roots

Multi-root settings have different scopes. User settings apply to your VS Code environment, workspace settings apply to the saved workspace, and folder settings apply only to supported resource settings for an individual root. A folder-specific setting can override a workspace setting.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

In a multi-root workspace, folder-level settings are for resource settings; editor-wide settings belong at user or workspace scope. This distinction matters when a setting appears to be ignored: check where it is defined and whether a root-specific value takes precedence. Put shared preferences at workspace scope and reserve folder settings for differences that genuinely belong to one root.

Keep tasks and debugging tied to the right root

Tasks

VS Code can discover tasks from individual roots, including task definitions in each root’s .vscode/tasks.json. Workspace-level task definitions are also possible, subject to documented task-type restrictions. When similar tasks exist in several roots, descriptive root names help distinguish them in the interface.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Launch configurations

Debug configurations can live in a root’s .vscode/launch.json or in the workspace file. If a workspace-level configuration uses a root-specific variable, identify the intended folder explicitly rather than relying on an ambiguous default. This keeps a configuration from using the wrong root when several projects have similar file structures.

Check workspace trust before running project tasks

Workspace Trust affects what VS Code allows in a workspace. In Restricted Mode, tasks require trust before they can execute. Adding an unfamiliar folder can affect trust for the multi-root workspace, so consider the contents and origin of each root before trusting the combined setup or running its tasks.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

If a task is unavailable, check whether the window is in Restricted Mode and review the workspace’s trust state. Trust only folders whose contents you are willing to run; combining a known project with an unfamiliar one does not make the unfamiliar project’s tasks safe.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Use multi-root to reduce context switching, not to collect folders

A multi-root workspace is most useful when the roots have a working relationship: an application and its documentation, cooperating services, or a repository view tailored to a particular role. A focused workspace file can give each task a practical view without changing the repository’s on-disk structure.

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.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

For a single self-contained project, open its folder and avoid extra workspace configuration. For several related folders that need shared navigation or coordinated tasks and debugging, add roots and save the arrangement. Revisit the setup when roots change, paths stop matching, or the combined view creates more clutter than clarity.

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.