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
Use the review shortcut or open the Command Palette and run the review command.
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
Use the Command Palette to run review on the current file. To apply a suggested fix, click the annotation and choose Apply Fix from the popup.
Pro Tip
Right-click in the editor to access "GRID: Review This File" from the context menu.