LLM Context Builder
VS Code extension for building context prompts for Large Language Models (LLMs).
Features
- 📁 Custom file explorer for easy selection of files and folders
- 🔢 Automatic token counting for selected content
- 🔍 File filtering with comma-separated search terms
- 🗜️ Optional code minification for JS/TS files
- ⚙️ Customizable directory and file type exclusions
- 📋 One-click context prompt generation and copying
Install
- From Visual Studio Marketplace: Install directly from the marketplace and reload VS Code if prompted.
- From within Visual Studio Code: Open Extensions (Ctrl+Shift+X), search "LLM Context Builder", and click Install.
Usage
- Open the LLM Context Builder view in the Explorer sidebar
- Select files/folders to include in your context prompt
- Use the search box to filter files
- Click "Create Context Prompt" to generate and copy the prompt to the clipboard
Commands
LLM Context Builder: Toggle Search Box
LLM Context Builder: Deselect All Files
LLM Context Builder: Create Context Prompt
LLM Context Builder: Toggle Code Minification
LLM Context Builder: Update Exclude List
Configuration
{
"contextPrompt.excludeDirectories": [".git", "node_modules"],
"contextPrompt.excludeFileTypes": [".jpg", ".png", ".pdf"],
"contextPrompt.minifyCode": false,
}
License
This project is licensed under the Blue Oak Model License 1.0.0.
| |