AI Context Generator is a Visual Studio Code extension designed to generate context summaries for directories and root folders, facilitating better AI-powered insights.
Features
Generate AI context for selected directories.
Generate AI context for the root folder of your workspace.
Easily copy generated context to the clipboard.
Installation
From the Marketplace
Open Visual Studio Code.
Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or by pressing Ctrl+Shift+X.
Search for AI Context Generator.
Click Install.
Usage
Generating Directory Context
Right-click on a directory in the Explorer view.
Select Generate Directory Context for AI from the context menu.
Generating Root Folder Context
Open the Command Palette (Ctrl+Shift+P).
Type AI Context Generator: Generate Root Folder Context for AI and select the command.
This will generate the context for the root folder of your workspace and display it in a webview panel.
Copying Generated Context
After generating the context, you can copy the content directly from the webview panel:
Click the Copy button above the Tree or Files sections to copy individual content.
Use the Copy All button to copy the entire generated context.
Important Note
This extension automatically ignores certain folders to prevent cluttering your file tree and file context with external code that is not part of your actual project. Specifically, it will ignore:
Folders starting with a period (e.g., .expo, .git)