File Tree Context
🎉 File Tree Context — Automatically save your project's file tree between tags on every file save! Perfect for enhancing AI IDE context (like Cursor) and improving code suggestions. Customizable with ignore patterns and target files. 🚀
Product Description
File Tree Context is a Visual Studio Code extension that automatically generates a textual representation of your project's file tree. This file tree is inserted between <FileTree>
tags in a specified target file whenever you save a file in the workspace. By providing a snapshot of your project structure, this extension can enhance the context available to AI tools and IDEs that utilize such information for code suggestions, refactoring, or other intelligent features.
Core Features
- Automatically updates your project's file tree on file save.
- Inserts the file tree between customizable
<FileTree>
tags in a target file. - Supports ignore patterns using
.gitignore
or custom ignore files. - Customizable via a configuration file (
filetreecontext.config.json
).
Use Cases
- Enhances AI IDE context for better code suggestions and refactoring.
- Automatically maintains an updated representation of project files for easier management.