Omga AI - Advanced Programming Assistant
Omga AI is a powerful VS Code extension that provides intelligent programming assistance powered by Google's Gemini AI. Get instant code completions, explanations, optimizations, and more directly in your editor.
✨ Features
🤖 Intelligent Code Completion
- Real-time inline code suggestions
- Context-aware completions based on your current code
- Supports all popular programming languages
- Ask programming questions directly in VS Code
- Get explanations for complex concepts
- Context-aware responses based on your current file
🛠️ Code Actions
- Explain Code: Get detailed explanations of selected code
- Optimize Code: Receive performance and readability improvements
- Generate Tests: Create comprehensive unit tests automatically
- Fix Code: Identify and fix bugs in your code
🎯 Smart Context Integration
- Automatically includes current file context in responses
- Works with selected code for targeted assistance
- Maintains conversation history for better context
🚀 Getting Started
Prerequisites
- VS Code 1.74.0 or higher
- Metis API Key
Installation
- Install the extension from the VS Code marketplace
- Get your Metis API key from Metis Ai
- Open VS Code settings and search for "Omga AI"
- Enter your API key in the
omga-ai.apiKey
setting
Configuration
Open VS Code settings and configure Omga AI:
{
"omga-ai.apiKey": "your-metis-api-key-here",
"omga-ai.model": "gemini-2.0-flash",
"omga-ai.enableInlineCompletion": true,
"omga-ai.enableCodeSuggestions": true,
"omga-ai.temperature": 0.3
}
📖 Usage
- Click the robot icon in the activity bar
- Open the "Omga AI Assistant" panel
- Type your programming questions and get instant answers
Code Actions
- Select any code in your editor
- Right-click to open the context menu
- Choose from Omga AI options:
- Explain Code
- Optimize Code
- Generate Tests
- Fix Code
Inline Completions
- Simply start typing and Omga AI will suggest completions
- Press
Tab
to accept suggestions
- Works automatically as you code
Command Palette
Access all Omga AI features via the command palette (Ctrl/Cmd + Shift + P
):
Omga AI: Open Chat
Omga AI: Explain Code
Omga AI: Optimize Code
Omga AI: Generate Tests
Omga AI: Fix Code
⚙️ Settings
Setting |
Description |
Default |
omga-ai.apiKey |
Your Metis API Key |
"" |
omga-ai.model |
Gemini model to use |
"gemini-2.0-flash" |
omga-ai.enableInlineCompletion |
Enable inline code completion |
true |
omga-ai.enableCodeSuggestions |
Enable code suggestions |
true |
omga-ai.temperature |
AI response creativity (0-2) |
0.3 |
Available Models
gemini-2.0-flash
- Best performance and capabilities
gemini-2.0-flash-exp
- Faster responses
gemini-2.0-flash-lite
- Standard model
🔒 Privacy & Security
- Your API key is stored locally in VS Code settings
- Code is only sent to Google's Gemini API when you explicitly request assistance
- No code is stored or logged by the extension
- All communication is encrypted via HTTPS
🐛 Troubleshooting
Common Issues
"API not initialized" error:
- Ensure you've set your Metis API Key in settings
- Restart VS Code after setting the API key
Slow responses:
- Try using
gemini-2.0-flash
model for faster responses
- Check your internet connection
No inline completions:
- Verify
omga-ai.enableInlineCompletion
is set to true
- Make sure you have sufficient context (at least 2 characters)
Getting Help
If you encounter issues:
- Check the VS Code Developer Console (
Help > Toggle Developer Tools
)
- Look for Omga AI error messages
- Report issues on our GitHub repository
🎯 Tips for Best Results
- Be Specific: Ask detailed questions for better responses
- Provide Context: Select relevant code before asking questions
- Use Clear Language: Write clear, specific prompts
- Experiment with Temperature: Lower values (0.1-0.3) for code, higher (0.7-1.0) for creative tasks
📝 Examples
Code Explanation
Select a function and use "Explain Code" to get:
- What the function does
- Parameter explanations
- Return value details
- Usage examples
Code Optimization
Get suggestions for:
- Performance improvements
- Memory optimization
- Code readability
- Best practices
Test Generation
Automatically generate:
- Unit tests
- Edge case tests
- Mock data
- Test setup code
🤝 Contributing
We welcome contributions! Please see our contributing guidelines for more information.
📄 License
This extension is licensed under the MIT License. See the LICENSE file for details.
Developer :
Enjoy coding with Omga AI! 🚀