Quickly copy entire folders to your clipboard, respecting .gitignore, for use in ChatGPT or other AI apps as context.
Smart Context is an open-source VS Code extension that gives you full control over how you manage and copy text from your projects—without ever leaving your local environment. It respects .gitignore
and keeps your private code secure, unlike cloud-dependent alternatives like uithub.com.
- 100% Open-Source: Modify and extend it to fit your needs. It's your tool, fully under your control.
- Private and Secure: Works locally on your machine, ensuring that sensitive or proprietary code stays private—no external APIs involved.
- Respects
.gitignore
: Automatically excludes files and folders specified in.gitignore
, making it ideal for large projects.
- Copy Text Files Easily: Grab contents from all text files in a selected folder and paste them wherever you need.
- Support for Multiple Extensions: Recognizes a wide range of file extensions, ensuring that all your relevant text data is included.
- Seamless Workflow: No complex setup or configuration—just right-click, copy, and paste.
- Right-Click: Right-click on any folder in the VS Code file explorer.
- Select Command: Choose "Smart Context: Copy Folder Contents to Clipboard".
- Paste: Paste the concatenated file contents, including relative paths, wherever needed.
Alternatively:
- Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).
- Select "Smart Context: Copy Folder Contents to Clipboard".
- Choose your folder.
- Complete Privacy: Unlike uithub.com, Smart Context operates entirely on your machine, ensuring no code leaves your environment.
- Open-Source Freedom: Customize the tool as you see fit—no locked-down features or hidden limitations.
- .gitignore Compliance: Automatically exclude files you don't need, streamlining your workflow.
- Download: Get the latest
.vsix
file from our GitHub Releases. - Install:
- Drag the
.vsix
into the VS Code Extensions view, or - Open the Extensions view, click the "..." menu, select "Install from VSIX...", and choose the file.
- Drag the
This project is licensed under the MIT License. See the LICENSE file for details.
🌴 Brian is the creator of Smart Context for VS Code. He’s passionate about building tools that empower individuals while keeping privacy at the forefront. Follow his updates on Twitter at @wfhbrian.