Quickly add and remove folders from the current VS Code workspace using the Explorer context menu.
This extension simplifies managing multi-root workspaces directly from the Explorer context menu.
Right-click any non-root folder in the Explorer and select Add Folder to Workspace. The selected folder will be added as a workspace root and will immediately appear in the Explorer sidebar.
This option only appears on folders that are not already workspace roots.
Right-click a workspace root folder and select Remove Folder from Workspace. The folder will be removed from the current workspace after confirmation.
This option only appears on top-level workspace root folders.
VS Code supports multi-root workspaces, but adding folders typically requires navigating through:
File → Add Folder to Workspace...
This extension makes the workflow available directly from the Explorer context menu.
- VS Code 1.100.0 or later
npm install
npm run compile
npx vsce package
code --install-extension multi-root-workspace-0.0.1.vsix| Command | Description | Visibility |
|---|---|---|
| Add Folder to Workspace | Adds the selected folder as a workspace root | Non-root folders only |
| Remove Folder from Workspace | Removes the selected workspace root | Workspace root folders only |
The extension uses VS Code's native multi-root workspace API:
vscode.workspace.updateWorkspaceFolders(...)No custom explorer view is created. Added folders behave exactly like folders added through VS Code's built-in workspace functionality.
- Clone the repository and run
npm install. - Press
F5in VS Code to launch the Extension Development Host.
MIT