Power Tools extends your Dictator voice recording plugin with advanced developer-focused features and customizable AI workflows. This guide will help you maximize your productivity with these new capabilities.
- Install/Enable Dictator - Run the "Enable Dictator" command from VS Code command palette
- Look for the Flash Icon - Next to the microphone in Cursor's chat interface, you'll see a ⚡ flash icon
- Right-click or Left-click the flash icon to open the Power Tools context menu
- Customize Templates - Use "⚙️ Power Tool Settings" to add your own prompt templates
Ready-to-use AI prompts for common development tasks:
- 🧪 Generate Tests (
Cmd+Shift+T) - Creates comprehensive unit tests - 🐛 Bug Analysis (
Cmd+Shift+B) - Analyzes code for potential issues - 📚 Generate Docs (
Cmd+Shift+D) - Creates documentation and comments - 👀 Code Review - Provides thorough code quality analysis
- 🔄 Refactor Code - Suggests improvement and refactoring
- 💡 Explain Code - Breaks down complex code logic
- Automatic Code Selection - Templates automatically include selected code
- Intelligent Prompting - Prompts adapt based on your selection
- Chat Integration - Seamlessly injects prompts into Cursor's chat
- Each template can have its own keyboard shortcut
- Default hotkeys follow VS Code conventions
- Fully customizable through settings
Templates are organized by category:
- Development - Code generation, refactoring, testing
- Debugging - Bug analysis, troubleshooting
- Documentation - Comments, docs, explanations
- Learning - Code explanation, tutorials
- General - Custom templates
- Click the ⚡ flash icon → "⚙️ Power Tool Settings"
- Or use the VS Code command: "⚡ Power Tool Settings"
- Or use hotkey:
Cmd+Shift+,
-
Open Power Tool Settings
-
Fill out the form:
- Name: Display name for your template
- Description: Brief explanation of what it does
- Category: Group it with similar templates
- Prompt: The actual AI prompt text
- Hotkey: Optional keyboard shortcut (e.g.,
cmd+shift+x) - Icon: Codicon class name for the menu icon
-
Click "Add Template"
Name: ⚡ Optimize Performance
Description: Analyze and optimize code for better performance
Category: development
Prompt: Analyze the selected code for performance bottlenecks and suggest specific optimizations. Consider memory usage, algorithmic complexity, and runtime efficiency.
Hotkey: cmd+shift+o
Icon: codicon-rocket
Name: 🏗️ Architecture Review
Description: Review system architecture and design patterns
Category: development
Prompt: Review the selected code from an architectural perspective. Evaluate design patterns, SOLID principles, separation of concerns, and suggest improvements for maintainability and scalability.
Hotkey: cmd+shift+a
Icon: codicon-organization
Name: 🔒 Security Audit
Description: Check for security vulnerabilities
Category: debugging
Prompt: Perform a security audit of the selected code. Look for potential vulnerabilities including SQL injection, XSS, authentication issues, data validation problems, and suggest fixes.
Hotkey: cmd+shift+s
Icon: codicon-shield
The Power Tools interface is designed to match VS Code's theme and styling:
- Adaptive Theming - Automatically matches your VS Code theme
- Responsive Design - Works on different screen sizes
- Keyboard Navigation - Full keyboard accessibility
- Visual Feedback - Hover effects and state indicators
Templates automatically include selected code when available:
Your prompt text here.
Code to analyze:
[selected code will be automatically appended]
### Workflow Chaining
You can create templates that work together:
1. Use "🐛 Bug Analysis" to identify issues
2. Follow up with "🔄 Refactor Code" for fixes
3. Finish with "🧪 Generate Tests" for validation
### Integration with Monaco Editor
Power Tools integrates with VS Code's Monaco editor:
- Automatically detects selected text
- Preserves syntax highlighting context
- Works with multiple selections
## 📋 Default Templates Reference
| Template | Hotkey | Purpose |
|----------|--------|---------|
| 🧪 Generate Tests | `Cmd+Shift+T` | Create unit tests with edge cases |
| 🐛 Bug Analysis | `Cmd+Shift+B` | Find bugs and security issues |
| 📚 Generate Docs | `Cmd+Shift+D` | Create JSDoc and documentation |
| 👀 Code Review | - | Quality and best practices review |
| 🔄 Refactor Code | - | Improvement suggestions |
| 💡 Explain Code | - | Detailed code explanation |
## 🛠️ Configuration Options
Power Tools stores settings in localStorage with these options:
```javascript
{
preferences: {
showHotkeys: true, // Show hotkeys in menu
groupByCategory: true, // Group templates by category
compactMode: false, // Compact menu display
autoFocusInput: true, // Auto-focus chat input
enableTTS: false, // Text-to-speech (future)
preferredModel: 'gpt-4', // Default AI model
maxTokens: 4000 // Token limit
}
}
- AI Commit Messages - Generate commit messages from git diff
- Built-in TTS - Voice responses to complement ASR
- Theme Switcher - Quick theme switching
- Prompt Chaining - Link multiple templates together
- Multi-LLM Support - Switch between GPT, Claude, Mistral
- Stack Overflow Integration - Search and integrate solutions
- Clipboard History - Smart copy-paste with AI enhancement
- Plugin System - Load custom JavaScript modules
- Ensure Dictator is enabled: Run "Enable Dictator" command
- Restart VS Code/Cursor
- Check browser console for errors
- Verify power-tools.js is loaded (check browser console)
- Try refreshing Cursor interface
- Check localStorage permissions
- Ensure no conflicts with existing VS Code shortcuts
- Try different key combinations
- Check if focus is in chat interface
- Check browser localStorage permissions
- Try private/incognito mode to test
- Clear localStorage and reconfigure
- Start with Defaults - Use built-in templates before creating custom ones
- Consistent Naming - Use clear, descriptive names for templates
- Category Organization - Group related templates together
- Test Hotkeys - Ensure no conflicts with existing shortcuts
- Iterative Improvement - Refine prompts based on AI responses
- Backup Settings - Export/backup your custom templates
Want to improve Power Tools? Here's how:
- Feature Requests - Open an issue on GitHub
- Bug Reports - Include console logs and reproduction steps
- Template Sharing - Share useful templates with the community
- Code Contributions - Submit PRs for new features
Happy Coding with Power Tools! ⚡
Power Tools transforms Cursor into a true AI-powered development environment. With customizable templates and intelligent workflows, you'll code faster and smarter than ever before.