📖 CodeFix Pro - Complete User Guide
🚀 Getting Started
Step 1: Install the Extension
- Open Extensions panel in VS Code (
Ctrl+Shift+X)
- Type "CodeFix Pro" in the search bar
- Click Install
Step 2: Get Your Gemini API Key
- Visit: Google Gemini Api key
- Login with your Google account
- Click Create API Key
- Copy your new API key
Step 3: Set Up API Key in VS Code
- Open Command Palette in VS Code (
Ctrl+Shift+P)
- Type:
CodeFix Pro: Set Gemini API Key
- Press Enter
- Paste your API key
- Press Enter
✅ Success! Your extension setup is complete.
📝 How to Use CodeFix Pro
🔄 Option 1: Review a Single File
- Right-click on any file in Explorer
- Select "CodeFix Pro: Review Current File"
- Wait for the review to complete
- Preview issues and Apply Fixes
📁 Option 2: Review Entire Project
- Right-click on your project folder in Explorer
- Select "CodeFix Pro: Review & Fix Entire Project"
- Confirm the action (it will review all files)
- Watch the progress bar and wait for the summary report
🔧 What CodeFix Pro Fixes
🔒 Security Issues:
- Hardcoded API keys and passwords
eval() function usage
innerHTML security risks
- Unsafe function calls
🐛 Bug Fixes:
- Null/undefined access errors
- Type errors and logical mistakes
- Assignment in conditions (
= instead of ==/===)
- Async/await problems
✨ Code Quality Improvements:
- Changing
var to let/const
- Removing or commenting
console.log statements
- Unused variables and functions
- Inefficient code patterns
📊 Understanding the Review Report
After review completes, you'll get two reports:
1. Visual HTML Report:
- Color-coded issue categories
- Statistics and metrics
- File-by-file breakdown
2. Text Summary (Output Panel):
📊 CODE REVIEW COMPLETE
Total Files Analyzed: 15
Files Fixed: 8
Total Issues Found: 23
🔴 SECURITY FIXES: 5
🟠 BUG FIXES: 8
🟡 CODE QUALITY IMPROVEMENTS: 10
⚙️ Configuration Settings
Go to VS Code settings (Ctrl+,) and search for codefix-pro:
| Setting |
Description |
Default Value |
codefix-pro.apiKey |
Your Gemini API key |
(empty) |
codefix-pro.model |
AI model to use |
gemini-2.5-flash |
codefix-pro.autoFix |
Automatically apply fixes |
true |
codefix-pro.scanExtensions |
File types to scan |
[".js", ".ts", ".html", ".css"] |
💡 Tips & Best Practices
For Best Results:
- Review in small batches - Start with single files
- Preview fixes before applying
- Commit to Git before bulk fixes
- Test your code after fixes are applied
Supported File Types:
- JavaScript (
.js, .jsx)
- TypeScript (
.ts, .tsx)
- HTML (
.html, .htm)
- CSS (
.css)
- JSON (
.json)
❓ Troubleshooting
Common Issues & Solutions:
| Problem |
Solution |
| "API key not set" error |
Run CodeFix Pro: Set Gemini API Key command |
| No issues found |
Check if file type is supported |
| Fixes not applying |
Check codefix-pro.autoFix setting |
| Slow performance |
Review large projects in chunks |
| "Invalid API key" |
Generate a new API key |
Viewing Logs:
- Open Output Panel in VS Code (
Ctrl+Shift+U)
- Select "CodeFix Pro" from the dropdown
- View detailed logs
🔄 Workflow Examples
Example 1: Security Audit
1. Run security review on project
2. Find hardcoded secrets
3. Convert to environment variables
4. Generate security report
Example 2: Code Cleanup
1. Run code quality review
2. Convert var → let/const
3. Remove console.log statements
4. Delete unused code
Example 3: Bug Hunting
1. Run bug detection
2. Add null checks
3. Fix type errors
4. Resolve logic issues
📞 Support & Feedback
Getting Help:
- Check Output Panel for error details
- Verify API key is valid and active
- Ensure internet connection is working
Reporting Issues:
To report extension issues:
- Copy the error message
- Note the steps to reproduce
- Attach sample code (if possible)
🎯 Quick Reference Commands
| Command |
Shortcut |
Description |
| Set API Key |
Ctrl+Shift+P → "CodeFix Pro: Set API Key" |
Configure Gemini API |
| Review File |
Right-click file → "Review Current File" |
Single file analysis |
| Review Project |
Right-click folder → "Review Entire Project" |
Full project analysis |
| View Settings |
Ctrl+, → search "codefix-pro" |
Extension configuration |
✅ Success Checklist
- [ ] Extension installed
- [ ] Gemini API key obtained
- [ ] API key configured in VS Code
- [ ] Test file reviewed successfully
- [ ] Fixes applied and verified
- [ ] Settings customized as needed
🎉 Ready to Start? Open a project and right-click "CodeFix Pro: Review Current File"!
⚠️ Note: CodeFix Pro provides AI-powered suggestions. Always review suggested changes before applying, especially in production code.
For more Information contact ---9389609760