Skip to content

AI Context Generator is a Visual Studio Code extension designed to generate context summaries for directories and root folders, facilitating better AI-powered insights.

License

Notifications You must be signed in to change notification settings

drumnation/ai-context-generator

Repository files navigation

AI Context Generator VS Code Extension

Extension Icon

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

  1. Open Visual Studio Code.
  2. 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.
  3. Search for AI Context Generator.
  4. Click Install.

Usage

Generating Directory Context

  1. Right-click on a directory in the Explorer view.
  2. Select Generate Directory Context for AI from the context menu.

Generating Root Folder Context

  1. Open the Command Palette (Ctrl+Shift+P).
  2. Type AI Context Generator: Generate Root Folder Context for AI and select the command.
  3. 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)
  • node_modules directory
  • dist 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.

Contributing

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.

Generative icons created by Parzival’ 1997 - Flaticon

About

AI Context Generator is a Visual Studio Code extension designed to generate context summaries for directories and root folders, facilitating better AI-powered insights.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published