Code Reviewer Pro - VS Code Extension

AI-powered code reviewer and auto-fixer extension for VS Code. Review and automatically fix code issues with your own API key (secure storage).
🎯 Features
✅ Code Review - Analyze files/folders for issues
✅ Auto-Fix - Automatically fix code style and syntax issues
✅ Secure API Storage - Store API keys securely using VS Code Secrets API
✅ Multiple Providers - Support for Gemini, OpenAI, Claude
✅ Folder Scanning - Review entire folders recursively
✅ Detailed Reports - Get detailed issue reports in output panel
✅ Auto-Save - Optional automatic save after fixing
📦 Installation
Method 1: From VS Code Marketplace (Coming Soon)
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "Code Reviewer Pro"
- Click Install
Method 2: Manual Installation
- Clone or download this repository
- In VS Code, press
Ctrl+Shift+P → "Extensions: Install from VSIX"
- Select the
.vsix file
Method 3: Development Mode
cd /path/to/extension
npm install
# Press F5 in VS Code to launch extension in debug mode
🔑 Setup (First Run)
- Open VS Code
- Press
Ctrl+Shift+P and search for "Code Reviewer Pro: Set API Key"
- Select your API Provider:
gemini - Google Gemini API
openai - OpenAI API
claude - Anthropic Claude API
- Enter your API key (it will be stored securely)
- Done! 🎉
Your API key is stored securely in VS Code's Secret Storage and never exposed.
🚀 Usage
Review Current File
Command: Code Reviewer Pro: Review Current File
- Shortcut: Available in Command Palette
- Analyzes the currently open file
- Shows issues in output panel
Auto-Fix Current File
Command: Code Reviewer Pro: Auto-Fix Current File
- Shortcut: Available in Command Palette
- Automatically fixes code issues
- Optional auto-save
Review Folder
Command: Code Reviewer Pro: Review Folder
- Right-click on folder in Explorer
- Recursively scans all supported files
- Shows detailed report
Fix Folder
Command: Code Reviewer Pro: Auto-Fix Folder
- Right-click on folder in Explorer
- Auto-fixes all files in folder
- Shows summary report
⚙️ Configuration
Press Ctrl+, to open Settings, search for "Code Reviewer Pro":
{
"codeReviewerPro.apiProvider": "gemini",
"codeReviewerPro.autoSaveAfterFix": true,
"codeReviewerPro.showDetailedReport": true,
"codeReviewerPro.excludePatterns": [
"node_modules",
"dist",
"build",
".next"
]
}
Configuration Options
| Setting |
Type |
Default |
Description |
apiProvider |
string |
gemini |
AI provider (gemini/openai/claude) |
autoSaveAfterFix |
boolean |
true |
Auto-save after fixing |
showDetailedReport |
boolean |
true |
Show detailed review report |
excludePatterns |
array |
["node_modules", "dist", "build", ".next"] |
Folders to exclude |
🔒 Security
- API keys are stored securely using VS Code's Secret Storage API
- Keys are never logged or exposed in output
- Keys are encrypted at rest
- No data sent to external servers except to your chosen API provider
📝 What Gets Fixed
The extension automatically fixes:
✓ Smart quotes → Straight quotes
✓ Trailing whitespace
✓ Multiple semicolons (;;) → (;)
✓ Tabs → 2 spaces
✓ Missing final newlines
✓ Console.log statements (optional)
🎨 Supported File Types
- JavaScript (
.js)
- JSX (
.jsx)
- TypeScript (
.ts)
- TSX (
.tsx)
- HTML (
.html)
- CSS (
.css)
- Vue (
.vue)
- Svelte (
.svelte)
🐛 Troubleshooting
"API Key not found!"
→ Run Code Reviewer Pro: Set API Key and enter your API key
Extension not showing commands?
→ Press Ctrl+Shift+P and search for "Code Reviewer Pro"
Changes not saving?
→ Check codeReviewerPro.autoSaveAfterFix setting
API calls failing?
→ Verify your API key is valid
→ Check your API provider in settings
→ Ensure internet connection
📊 Example Output
📊 CODE REVIEW REPORT
📄 File: /workspace/src/app.js
✓ Replaced smart single quotes
✓ Trimmed trailing whitespace
✓ Converted tabs to spaces
✓ Added final newline
✨ Applied 4 fix(es)
🤝 Contributing
Found a bug or want a feature?
- Open an issue on GitHub
- Submit a pull request
📄 License
MIT License - feel free to use commercially
🙏 Support
If you find this extension helpful, please:
- ⭐ Star the repository
- 📝 Leave a review
- 💬 Share feedback
Made with ❤️ for developers