A handy Visual Studio Code extension that quickly captures file paths and contents, then copies them straight to your clipboard. Perfect for quickly sharing snippets of code, logs, or just about any file text without manually copying each file individually.
- Context Menu Integration: Right-click on files or folders in the Explorer to copy a “snapshot” (path + contents) directly to your clipboard.
- Multiple Selections: Supports copying snapshots for multiple files/folders at once.
- Recursive Folder Scan: Recursively collects files in any selected folders, so you can grab all contents in a single command.
- Path Relative to Workspace: Automatically shows file paths relative to your current workspace (if available).
-
From the VS Code Marketplace (recommended):
- Open the Extensions view in VS Code (
Ctrl+Shift+X
orCmd+Shift+X
on macOS). - Search for
ClipSnap
. - Click Install.
- Open the Extensions view in VS Code (
-
From a VSIX package:
- Download the latest
.vsix
file from the Releases. - In VS Code, open the command palette (
Ctrl+Shift+P
orCmd+Shift+P
) and run:Extensions: Install from VSIX...
- Select the downloaded
.vsix
file to complete installation.
- Download the latest
-
From source:
- Clone this repository and open it in VS Code.
- Run
npm install
to install dependencies. - Run
npm run compile
to build the extension. - Press
F5
in VS Code to launch a new Extension Development Host.
- Select items in the Explorer (files or folders).
- Right-click on one of the selected items.
- Choose “Copy Snapshot”.
- Wait for the notification—“Snapshot copied to clipboard!”
- Paste your snapshot anywhere (issue trackers, chat, documentation, LLMs, etc.)
Alternatively, you can use the Command Palette:
- Open the command palette (
Ctrl+Shift+P
orCmd+Shift+P
). - Search for “Copy Snapshot”.
- Trigger the command to copy any selected files/folders (if none are selected, you’ll get an error message).
There are no special settings or configurations needed. Just install and go!
- None so far! If you encounter any issues or have suggestions, please file a GitHub Issue.
- Adds setting
excludeExtensions
to exclude files with the extensions the user can define in vs code settings.
- Added Progress Bar.
- Added prompt to confirm if user selected >10 files.
- Initial public release.
- Added folder recursion to capture all files under a selected directory.
- Improved error handling for empty selections.
Contributions, suggestions, and improvements are welcome!
- Fork the project.
- Create a feature branch.
- Commit your changes.
- Open a pull request.
This extension is licensed under the MIT License.