Command Completion
Postfix completion for IDE commands - access quick fixes, refactorings, and navigation via dot notation
A VSCode/Cursor extension that brings IDE commands into your autocomplete menu. Type . after any code to see available refactorings, quick fixes, and navigation options.
✨ Features
- Postfix Completion: Type
. after code to see available commands
- Smart Filtering: Only shows commands that actually work (filters out non-functional actions)
- Language Agnostic: Works with Java, TypeScript, JavaScript, Python, Go, Dart, and more
- Non-Intrusive: Commands appear after normal autocomplete suggestions (doesn't block them!)
- Fast & Cached: Results are cached and fetched with timeouts to prevent blocking
- Clean Execution: Automatically removes dots when executing commands
🚀 Usage
- Write some code
- Type
. after a variable, method, or statement
- See available commands in the autocomplete menu
- Select a command - the dot is removed and command executes!
Example
public class User {
private String name;
private int age;
}
Place cursor in the class and type . → See:
- Generate Constructors...
- Generate Getters and Setters...
- Generate hashCode() and equals()...
- Generate toString()...
- And more!
✅ What Works
Refactorings
- ✅ Generate Constructors
- ✅ Generate Getters/Setters
- ✅ Generate hashCode/equals
- ✅ Generate toString
- ✅ Generate Tests
- ✅ Extract Method/Variable
- ✅ Override/Implement Methods
Navigation
- ✅ Go to Definition
- ✅ Go to Type Definition
- ✅ Go to Implementation
- ✅ Find All References
- ✅ Peek Definition
- ✅ Rename Symbol
Quick Fixes
- ✅ Any quick fix with a command implementation
⚠️ Known Limitations
Some language server actions cannot be automated:
- ❌ Add Javadoc comment (requires user interaction)
- ❌ Organize imports (lazy action)
- ❌ Sort Members (lazy action)
These actions are automatically filtered out and won't appear in the menu.
🎯 Why Use This?
- Faster Workflow: No need to remember keyboard shortcuts
- Discoverable: See what actions are available at any position
- Consistent: Same
. pattern across all languages
- Familiar: Works like postfix templates (
.var, .for, etc.)
📦 Installation
From VSIX (For Testing)
- Download the
.vsix file
- In VSCode/Cursor:
Cmd+Shift+P → "Extensions: Install from VSIX"
- Select the downloaded file
- Reload window
From Marketplace (Coming Soon)
Search for "Command Completion" in the Extensions view.
⚙️ Configuration
The extension works out of the box. For auto-trigger on ., ensure these settings:
{
"editor.quickSuggestions": {
"other": true
},
"editor.suggestOnTriggerCharacters": true
}
If auto-trigger doesn't work, you can always use Ctrl+Space to show completions manually.
🐛 Troubleshooting
See TROUBLESHOOTING.md for common issues and solutions.
🤝 Contributing
Contributions are welcome! Please feel free to submit issues or pull requests.
📄 License
MIT - see LICENSE file for details.
🙏 Acknowledgments
Built for developers who want faster access to IDE features without memorizing shortcuts.
Enjoy coding with Command Completion! 🎉