Documentation
DocsCode Review
AI Code Review
Get instant AI-powered code review with inline annotations, security checks, and suggested fixes.
How to Use
1
Open a File
Open the code file you want to review
2
Trigger Review
Press Ctrl+Shift+R or use Command Palette
3
Review Annotations
Click annotations to see details and apply fixes
What It Checks
Security Vulnerabilities
- SQL Injection
- XSS
- Hardcoded secrets
- Path traversal
- Unsafe eval()
Performance Issues
- N+1 queries
- Memory leaks
- Unnecessary re-renders
- Blocking operations
Code Quality
- Unused variables
- Dead code
- Missing error handling
- Complex functions
Best Practices
- Type safety
- Naming conventions
- Documentation
- SOLID principles
Annotation Types
Error— Critical issue that should be fixed
Warning— Potential issue or improvement opportunity
Info— Suggestion or best practice recommendation
Applying Fixes
When a review annotation includes a suggested fix:
- 1Click the annotation in the editor
- 2Click "Apply Fix" in the popup
- 3Review the diff and accept/reject the change
Commands
> GRID: Review This File — Run review on current file
> GRID: Apply Fix — Apply suggested fix (called from annotation)
Pro Tip
Right-click in the editor to access "GRID: Review This File" from the context menu.