Copy Folder Contents

A lightweight Visual Studio Code extension that copies all file paths and their contents from a selected folder directly to your clipboard.
A lightweight Visual Studio Code extension that copies all file paths and their contents from a selected folder directly to your clipboard.
Features
- 📂 Right-click on any folder in the VSCode Explorer
- 📋 Copies:
- Full file paths
- File contents
- ✅ Works recursively for subfolders
- 🚫 Hidden from the command palette for a clean experience
- 🧩 Useful for sharing code snippets, documentation, backups, or quick reviews
Installation
From VSIX
Clone this repository and run:
npm install
npm run package
Install the generated .vsix file in VSCode:
- Open VSCode
- Go to Extensions (Ctrl+Shift+X)
- Click on the
... menu
- Select Install from VSIX...
From Source (Development Mode)
Clone this repository
Run:
npm install
npm run compile
Press F5 to open the extension in a new VSCode window
Usage
- Right-click on any folder in the VSCode Explorer
- Select "Copy File Paths and Contents"
- The contents will be copied to your clipboard in the following format:
/full/path/to/file1.txt
--------------------------------------------------
[file1 contents]
/full/path/to/subfolder/file2.js
--------------------------------------------------
[file2 contents]
License
MIT — see LICENSE for details.
Contributions
PRs are welcome! 🎉
Feel free to open issues or suggest improvements.
Roadmap Ideas
- Skip ignored folders (
node_modules , .git , etc.)
- Add support for multiple folder selection
- Show progress notification for large folders
- Add output to file option
Enjoy using Copy Folder Contents!
| |