AI Context Generator is a Visual Studio Code extension designed to generate context summaries for directories and root folders, facilitating better AI-powered insights.
- Generate AI context for selected directories.
- Generate AI context for the root folder of your workspace.
- Easily copy generated context to the clipboard.
- 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
.
- Right-click on a directory in the Explorer view.
- Select
Generate Directory Context for AI
from the context menu.
- 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.
After generating the context, you can copy the content directly from the webview panel:
- Click the
Copy
button above theTree
orFiles
sections to copy individual content. - Use the
Copy All
button to copy the entire generated context.
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
) node_modules
directorydist
directory- Android-specific directories:
build
,app/build
,gradle
,.gradle
,.idea
,android/.gradle
- Maven-related directories:
.m2
,.mvn
This is to ensure that the generated context is relevant and focused on your project's core files.
Contributions are welcome! Here are some ways you can contribute:
- Report Bugs: If you encounter any issues, please report them on the Issue Tracker.
- Feature Requests: If you have ideas for new features, feel free to submit them on the Issue Tracker.
- Code Contributions: Fork the repository, make your changes, and submit a pull request.