A powerful VS Code extension designed to streamline AI-assisted development by managing reusable prompt templates with dynamic variable substitution and file content integration capabilities.
Overview
Prompt Template Manager addresses the common challenge of repeatedly crafting similar prompts for AI assistance. Instead of writing "Tell me about cow sounds," "Tell me about chicken lifespan," and "Tell me about hippo weight" from scratch each time, you can create a single template like "Tell me about {animal}'s {feature}" and simply fill in the variables when needed.
Features
✅ Core Features (Implemented)
📝 Prompt Management: Save, edit, and organize frequently used prompt templates
🔍 Smart Search: Quickly find prompts from your collection
📊 Usage Tracking: Automatic sorting by usage frequency
💾 Global Storage: Prompts are available across all VS Code workspaces
📤 Export/Import: Backup and share your prompt collections with selective export and instant refresh
✅ File Content Integration
When you select a file using the 📁 button for a variable, the extension automatically:
Opens a file selection dialog to choose files
Reads the selected file content
Formats it in a structured XML format expected by AI tools
Handles both workspace-relative and absolute file paths
Displays the file reference as @filename in the variable input
Example workflow:
1. Create a prompt: "Please review {code_file}"
2. Click the 📁 button next to the code_file variable
3. Select a file (e.g., main.ts) from the dialog
4. The variable input shows: @main.ts
5. When executed, it expands to: