Purpose
Feeding your local files into Large Language Models (like ChatGPT, Claude, or local AI) can be tedious. Code Context Generator solves this by reading your project's complete code structure and automatically generating a clean, unified codecontext.txt file containing your visual folder hierarchy and the raw code of your files.
It intelligently respects your .gitignore rules and filters out heavy dependencies and binaries so your context window remains clean and secure.
How to Use
- Open your project in Visual Studio Code.
- Method 1: Right-click on any specific folder in your File Explorer and select
Generate Code Context. - Method 2: Open the Command Palette (
Ctrl+Shift+PorCmd+Shift+P) and runGenerate Code Contextto parse the entire root workspace. - A
codecontext.txtfile will be instantly generated at the target location.
Tech Stack
Built with performance and native integration in mind:
TypeScript
Node.js API (fs, path)
VS Code Extension API