CodeMate is an AI-powered code review assistant that analyzes your code and provides improvement suggestions from multiple perspectives. It uses Google's Gemini AI to understand your code and offer actionable recommendations.
Features
🤖 AI-Powered Analysis
Automatically analyzes code when you save a file
Uses Gemini AI for intelligent code review
Provides up to 3 actionable suggestions per analysis
🎭 Multiple Perspectives
Switch between different analysis viewpoints:
Pragmatic - Real-world maintainability and readability
Performance - Optimization and efficiency improvements
Maintainability - Code structure and separation of concerns
Security - Vulnerability detection and input validation
Product - User experience and error handling
⌨️ Keyboard Shortcuts
Shift+Alt+B (Windows/Linux) / Cmd+Shift+B (macOS) - Open CodeMate in the configured location
📋 Commands
CodeMate: Show View - Reveal CodeMate in the configured location
CodeMate: Switch Perspective - Cycle through different viewpoints
CodeMate: Analyze Current File - Manually trigger analysis
Installation
Open VS Code
Go to Extensions (Ctrl+Shift+X)
Search for "CodeMate"
Click Install
Configuration
CodeMate provides several settings you can customize:
Setting
Type
Default
Description
codemate.apiKey
string
-
Gemini API key (or use GEMINI_API_KEY env var)
codemate.model
string
gemini-2.5-flash
Gemini model used for analysis
codemate.autoAnalyze
boolean
true
Automatically analyze on file save
codemate.defaultPersonality
string
pragmatic
Default analysis perspective
codemate.debounceDelay
number
500
Delay in ms for save events
codemate.viewLocation
string
sidebar
Render CodeMate in the sidebar or in a separate editor panel