Workspace Copy Prompt
Easily add external files and folders to your VS Code workspace — choose to copy them in or add as a reference.
✨ Features
- Copy to workspace — Clones the selected file/folder into your workspace root directory
- Add as reference — Adds folders as a multi-root workspace entry, or opens files without copying
- Conflict handling — If a file/folder already exists, choose to overwrite, rename (with suffix), or skip
- Auto-create workspace — If no workspace is open, automatically creates a new unique folder in
~/Documents/
🚀 Usage
From the Command Palette
- Press
Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows/Linux)
- Type "Add File/Folder to Workspace (Copy or Reference)"
- Select the file(s) or folder(s) you want to add
- Choose your action:
- Copy to workspace — makes a local copy
- Add as reference — links to the original location
Right-click any item in the Explorer sidebar → "Add File/Folder to Workspace (Copy or Reference)"
📋 How it works
| Action |
Files |
Folders |
| Copy |
Copies file into workspace root |
Copies entire folder into workspace root |
| Reference |
Opens the file (no copy) |
Adds folder as a workspace root (multi-root) |
⚙️ Requirements
- VS Code 1.85.0 or later
- No additional dependencies
📝 Release Notes
0.0.1
- Initial release
- Copy or reference prompt for files and folders
- Conflict detection with overwrite/rename/skip options
- Auto-create workspace when none is open
| |