AI Context Generator
Quickly copy and paste entire project folder hierarchies and file contents into a JSON format for AI contexting.
Features
The AI Context Generator extension allows you to export your project's folder structure and file contents into a structured JSON format, which is:
- Copied to your clipboard for easy pasting into AI tools or other applications.
- Saved temporarily as
project_context_temp.json in your workspace.
- Opened in a new VS Code tab for review.
How It Works
- Run the command "Export Project Context to JSON" from the Command Palette (
Cmd+Shift+P on macOS or Ctrl+Shift+P on Windows/Linux).
- Select files and folders from your workspace using a multi-select Quick Pick menu.
- The extension generates a JSON representation of the selected items, preserving folder hierarchy and file contents.
This is especially useful for providing large project contexts to AI models, documentation tools, or collaborative workflows.
Requirements
- A VS Code workspace with at least one folder open.
- Only text-based files (e.g.,
.txt , .js , .md , .py , etc.) are included in the export. Binary files are ignored.
Extension Settings
This extension does not currently contribute any custom settings. It works out of the box with default VS Code functionality.
Known Issues
- Large projects with many files may take time to process due to recursive folder traversal.
- Non-text files (e.g.,
.png , .zip ) are skipped without notification.
Release Notes
0.0.1
- Initial release with core functionality:
- Export selected files and folders as JSON.
- Copy JSON to clipboard.
- Save JSON to a temporary file.
- Open JSON in a new editor tab.
Enjoy using AI Context Generator to streamline your workflow!
| |