Sakura Copy helps you quickly copy the contents of all open files (with full file paths) into a single new document. Designed for sharing code with AI tools or collaborators, it supports filtering secrets and irrelevant files so you can safely and efficiently pass along your codebase context.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Sakura Copy helps you quickly copy the contents of all open files (with full file paths) into a single new document. Designed for sharing code with AI tools or collaborators, it supports filtering secrets and irrelevant files so you can safely and efficiently pass along your codebase context.
Features
Copy to New File: Merges all open, non-empty files into a new untitled document.
Copy to Clipboard: Merges all content directly into your clipboard.
Customizable Paths: Choose to include full absolute paths, project-relative paths, or just filenames.
File Exclusion: Exclude files from being copied using glob patterns (e.g., *.log, **/node_modules/**).
Configurable Default: Set your preferred default copy behavior (new file or clipboard).
Commands
SakuraCopy: Copy Open Files: Copies open files based on your default setting.
SakuraCopy: Copy Open Files to Clipboard: Explicitly copies all open files to the clipboard.
SakuraCopy: Open Settings: Quickly access the extension's settings.
Extension Settings
This extension contributes the following settings:
SakuraCopy.defaultCopyBehaviour: Sets the default action for the Copy Open Files command (file or clipboard).
SakuraCopy.includePaths: Toggles whether to include file paths above the content (true or false).
SakuraCopy.pathStyle: Sets the path format when includePaths is enabled (full or relative).
SakuraCopy.excludePatterns: List of glob patterns for files to exclude from copying. Supports wildcards like *, **, and ?. Examples: *.log, **/node_modules/**, .env*.