A powerful and efficient VS Code extension that allows you to copy code from files and folders to clipboard with a single right-click. Perfect for sharing code snippets, collaborating on projects, and organizing code documentation.
- 📄 Copy Individual Files - Right-click on any file and instantly copy its content
- 📁 Copy Complete Folders - Recursively copy all code files from entire directories
- ✋ Multiple Selection - Select multiple files/folders and copy all content at once
- 🚫 Smart Filtering - Automatically skips binary files and generated directories
- 📝 Organized Format - Beautiful output with file headers showing names and paths
- ⚡ Error Resilient - Continues processing even if some files encounter issues
- 📊 Helpful Feedback - Shows file counts and statistics
- Open VS Code
- Press
Ctrl+Shift+X(orCmd+Shift+Xon Mac) - Search for "Copy Code"
- Click Install
- Right-click on a file or folder in the Explorer
- Select "Copy Code to Clipboard"
- Paste anywhere with
Ctrl+V(orCmd+Von Mac)
Source code (.js, .ts, .py, .java, .cpp, .cs, etc.), configuration (.json, .yaml, .toml), markup (.md, .html, .xml), and any text-based file.
Binary files: Images, videos, archives, executables
Directories: node_modules, .git, .vscode, dist, build, coverage, etc.
// =====================================
// File: utils.ts
// Path: /src/utils.ts
// =====================================
export function sum(a: number, b: number): number {
return a + b;
}
- Node.js >= 18.0.0
- VS Code >= 1.60.0
git clone https://github.com/your-username/copy-code-extension.git
cd copy-code-extension
npm install
npm run watchPress F5 to launch the extension.
npm run compile # Compile TypeScript
npm run watch # Watch for changes
npm run lint # Check code quality
npm run package # Create VSIX package
npm run publish # Publish to marketplaceMIT License - see LICENSE for details.