Capture the Code VS Code Extension
Takes a one‑click “text shot” of your whole workspace tree and each file’s textual content and puts it on your clipboard.
Features
- Sidebar view with a big 📸 Capture button
- Skips binary files and very large text files (configurable)
- Ignores common folders like
node_modules and .git
- Nothing is written to disk
Usage
- Install the extension (
vsce package then code --install-extension capture-code-shot-<version>.vsix or grab it from the Marketplace once published).
- Open a folder in VS Code.
- Click the Capture button in the Capture Code activity bar icon.
- Paste anywhere (chatGPT, email, etc.).
Settings
captureCodeShot.ignoreGlobs – Additional glob patterns to exclude.
captureCodeShot.maxFileSizeKB – Max size for file content before truncation.
captureCodeShot.skipBinaries – Skip binary files completely.
Development
npm install
npm run watch (auto‑compile)
- Press
F5 to launch the Extension Development Host.
| |