A VSCode extension that helps you manage and organize your prompts for use with GitHub Copilot Chat and other AI tools.
- Prompt Management: Store, organize, and manage your frequently used prompts
- GitHub Copilot Integration: Load prompts directly into Copilot Chat with one click
- Chat Participant: Use
@my-prompts
directly in Copilot Chat like@terminal
- Flexible Storage: Choose between workspace-specific or global prompt storage
- Easy Access: Tree view in the Explorer panel for quick access to all your prompts
- Search & Filter: Find prompts by name, content, or tags
- Import/Export: Backup and share your prompt collections
- Clone or download this repository
- Open the folder in VSCode
- Run
npm install
to install dependencies - Run
npm run compile
to build the extension - Press
F5
to launch Extension Development Host - The extension will be loaded in the new VSCode window
- Download the
.vsix
file from releases - In VSCode, go to Extensions view (
Ctrl+Shift+X
) - Click the
...
menu and select "Install from VSIX..." - Select the downloaded
.vsix
file
- After installation, you'll see a "My Prompts" section in the Explorer panel
- Click the
+
button to add your first prompt - Enter a name and content for your prompt
- Your prompt will appear in the tree view
- Click the
+
button in the My Prompts panel - Or use Command Palette (
Ctrl+Shift+P
) → "My Prompts: Add New Prompt" - Enter a descriptive name and the prompt content
- Right-click on a prompt in the tree view → "Edit Prompt"
- Or select a prompt and use Command Palette → "My Prompts: Edit Prompt"
- Right-click on a prompt → "Delete Prompt"
- Confirm the deletion in the warning dialog
Add to Current Chat (Default)
- Click on any prompt in the tree view
- The prompt will be added to your current Copilot Chat conversation
Start New Chat
- Right-click on a prompt → "Load to New Chat"
- Creates a fresh Copilot Chat session with the prompt
Command Palette Access:
- Press
Ctrl+Shift+P
to open Command Palette - Type "My Prompts: Select Prompt" and press Enter
- Quick Pick dialog opens with all your prompts
- Type to search/filter, use arrow keys to navigate
- Press Enter to select - prompt is copied to clipboard
- Paste (Ctrl+V) in chat and press Enter
Optional Keyboard Shortcut: You can add a custom keyboard shortcut for faster access:
- File → Preferences → Keyboard Shortcuts
- Search for "My Prompts: Select Prompt (Quick Pick)"
- Click the + icon and assign a key (e.g.,
Ctrl+Alt+P
)
In Copilot Chat, type:
@my-prompts
- Shows help and available access methods@my-prompts /[prompt-name]
- Copy a specific prompt to clipboard for pasting@my-prompts /
- List all available prompts with their command names
Example:
@my-prompts → Shows help and instructions
@my-prompts / → Lists all prompts with commands
@my-prompts /hi → Copies "hi" prompt to clipboard
[Ctrl+V] + [Enter] → Sends prompt to Copilot for processing
Access these commands via Command Palette (Ctrl+Shift+P
):
My Prompts: Select Prompt (Quick Pick)
- Open Quick Pick menu to select and copy promptsMy Prompts: List All Prompts
- Show count of stored promptsMy Prompts: Add New Prompt
- Create a new promptMy Prompts: Edit Prompt
- Modify an existing promptMy Prompts: Delete Prompt
- Remove a promptMy Prompts: Add to Current Chat
- Add prompt to current Copilot conversationMy Prompts: Load to New Chat
- Send prompt to new Copilot Chat sessionMy Prompts: Refresh
- Refresh the prompt list
Configure the extension via VSCode Settings (Ctrl+,
):
- Setting:
myPrompts.storageLocation
- Options:
workspace
(default) - Store prompts per workspaceglobal
- Store prompts globally across all workspaces
- Description: Choose where to store your prompts
Here are some useful prompts to get you started:
Please review this code for:
- Best practices and coding standards
- Potential bugs or issues
- Performance optimizations
- Security vulnerabilities
- Readability and maintainability
Generate comprehensive documentation for this code including:
- Purpose and functionality
- Parameters and return values
- Usage examples
- Edge cases and error handling
Create comprehensive unit tests for this function/class including:
- Happy path scenarios
- Edge cases
- Error conditions
- Mock requirements
- Test data setup
Help me refactor this code to:
- Improve readability and maintainability
- Follow SOLID principles
- Reduce code duplication
- Optimize performance
- Add proper error handling
The extension integrates seamlessly with GitHub Copilot Chat in multiple ways:
- Add to Current Chat: Click any prompt to add it to your ongoing conversation (default behavior)
- Start New Chat: Right-click and select "Load to New Chat" for fresh conversations
- Smart Integration: Preserves your chat context when adding prompts to current conversations
- Fallback to Clipboard: If direct loading fails, the prompt is copied to clipboard
- Native VSCode UI: Uses VSCode's Quick Pick dialog for intuitive prompt selection
- Searchable Interface: Type to filter prompts by name or content
- Keyboard Navigation: Arrow keys + Enter for fast selection
- Command Palette Access:
Ctrl+Shift+P
→ "My Prompts: Select Prompt"
- Native Chat Experience: Use
@my-prompts
directly in Copilot Chat like@terminal
- Direct Access: Use
/prompt-name
format to quickly access specific prompts - Help and Discovery: Shows available prompts and usage instructions
- Seamless Workflow: Copy-paste workflow integrates smoothly with Copilot Chat
Ctrl+Shift+P → "My Prompts" → Quick Pick dialog opens
@my-prompts → Shows help and available access methods
@my-prompts / → Lists all available prompts
@my-prompts /hi → Copies "hi" prompt to clipboard
For Tree View Integration:
- Ensure GitHub Copilot extension is installed and active
- Check that Copilot Chat panel is accessible
- The extension will automatically copy prompts to clipboard as a fallback
For Chat Participant (@my-prompts):
- Make sure you're using the correct command format:
@my-prompts /prompt-name
- Command names are shown when you type
@my-prompts
without any parameters - If a prompt isn't found, check the exact command name in the prompt list
-
Organize with Names: Use descriptive names like "Code Review - Security Focus" or "Generate Tests - React Components"
-
Use Placeholders: Include placeholders in your prompts:
Explain this [LANGUAGE] code and suggest improvements for [SPECIFIC_AREA]
-
Create Templates: Build reusable templates for common tasks:
- Code reviews
- Documentation
- Test generation
- Debugging assistance
-
Use Quick Pick Menu:
Ctrl+Shift+P
→ "My Prompts: Select Prompt" for the fastest prompt access -
Add Keyboard Shortcut: Assign a custom shortcut (e.g.,
Ctrl+Alt+P
) for even faster access -
Efficient Workflow: Quick Pick → Select → Ctrl+V → Enter for rapid prompt usage
-
Use Current Chat: Most of the time, click prompts to add to your current conversation for better context
-
Start Fresh When Needed: Use "Load to New Chat" for completely different topics or when you want a clean slate
-
Backup Your Prompts: Export your prompts periodically to avoid losing your collection
git clone <repository-url>
cd my-prompts
npm install
npm run compile
├── src/
│ ├── extension.ts # Main extension entry point
│ ├── promptManager.ts # Prompt storage and management
│ ├── copilotChatIntegration.ts # Copilot Chat integration
│ ├── promptsTreeProvider.ts # Tree view UI provider
│ └── chatParticipant.ts # @my-prompts chat participant
├── package.json # Extension manifest
├── tsconfig.json # TypeScript configuration
└── README.md # This file
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
MIT License - see LICENSE file for details
If you encounter issues or have suggestions:
- Check existing issues in the repository
- Create a new issue with detailed description
- Include VSCode version and extension version
- Initial release
- Basic prompt management
- Copilot Chat integration (tree view)
- Chat participant (@my-prompts) for native chat experience
- Tree view UI in Explorer panel
- Workspace/global storage options
- Interactive search and prompt insertion