Instantly consolidate and export code from any file or folder directly into a single, clean text file or your clipboard. Perfect for working with Large Language Models (like GPT-4, Gemini, Claude), creating documentation, or sharing code for review.
Tired of manually copying and pasting dozens of files for your projects? "Export Code Context" streamlines this entire process into a single right-click action, saving you valuable time and effort.
Demonstration
🚀 Features
One-Click Action: Right-click any file or folder in the VS Code Explorer and select "Code Context Action".
Folder Export:
Smart Scanning: Recursively scans all subfolders to find every relevant file.
Auto-Ignore: Automatically skips unnecessary directories like node_modules, .git, dist, and build.
Interactive Folder Selection: A checklist prompt allows you to deselect any subfolders you wish to exclude from the export.
File Type Filtering: After choosing folders, a second prompt lets you select exactly which file extensions (e.g., .ts, .py, .css) to include.
Consolidated Output: Combines the full path and code from every selected file into a single, organized .txt file, saved directly in the folder you clicked on.
Single File Copy:
Instant Clipboard Access: Copies the full file path and its complete content directly to your clipboard, formatted and ready to paste.
Works Offline: No internet connection required.
📖 How to Use
(This section remains the same)
In the VS Code Explorer, right-click on any file or folder.
Select Code Context Action from the menu.
Follow the interactive prompts for folder exports. Single file actions are instant.
I'm a passionate developer with a mission to build tools that are not only powerful but also intuitive and efficient. I created "Export Code Context" to solve a real-world problem I faced daily, saving developers countless hours of manual work.
Have an idea for a web application or need to scale your existing project? Let's talk!
Release Notes
1.0.2
Added "Meet the Creator" profile section.
Updated documentation and links.
1.0.1
Updated documentation and fixed the broken demonstration GIF link in the Marketplace listing.
1.0.0
Initial release of Export Code Context.
Universal command for handling both files and folders.
Automatic ignore-list for common large directories.
Interactive prompts for selecting subfolders and file extensions.
🤝 Contributing & Feedback
This is an open-source project. If you encounter any bugs, have feature requests, or would like to contribute, please visit our GitHub repository to open an issue or submit a pull request.
📄 License
This extension is licensed under the MIT License. See the LICENSE file for details.