Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi Root Workspace

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.

Features

Add folders to the workspace

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.

Remove folders from the workspace

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.

Why?

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.

Requirements

  • VS Code 1.100.0 or later

Installation

From VSIX

npm install
npm run compile
npx vsce package
code --install-extension multi-root-workspace-0.0.1.vsix

Commands

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

How It Works

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.

Development

  1. Clone the repository and run npm install.
  2. Press F5 in VS Code to launch the Extension Development Host.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages