ReasonCode 🧠⚡
ReasonCode is an AI-powered VS Code extension that helps you understand, review, and safely fix code using Google Gemini.
It works directly inside your editor and always keeps you in control.
✨ Features
🔍 Explain Selected Code
- Select any code
- Get a clear, beginner-friendly explanation
- Understand logic, bugs, and intent instantly
🛠️ Suggest Fix / Refactor
- AI reviews your selected code
- Suggests improvements and bug fixes
- Shows a diff preview before applying anything
✅ Safe Auto-Fix (With Confirmation)
- Apply fixes only after you approve
- No silent edits
- Full Undo (Ctrl + Z) support
🔐 Secure API Key Storage
- Gemini API key is stored securely using VS Code SecretStorage
- You enter it only once
🚀 How to Use
1️⃣ Explain Code
- Select code in the editor
- Open Command Palette (
Ctrl + Shift + P)
- Run:
- View explanation in the ReasonCode Output Panel
2️⃣ Suggest Fix / Refactor
- Select code
- Open Command Palette
- Run:
- Review the diff preview
- Choose Apply Fix or Cancel
🔑 API Key Setup (One Time)
ReasonCode uses Google Gemini.
- Get a Gemini API key from Google AI Studio
- When prompted, paste your key
- The key is stored securely by VS Code
🔒 Your key is never logged or shared.
🧠 Why ReasonCode?
- Designed for learning + productivity
- Safe by default (no forced edits)
- Clear explanations, not just answers
- Built for real developers, not demos
📦 Version History
0.1.0
- AI code explanation (Gemini)
- AI fix / refactor with diff preview
- Safe apply with user confirmation
- Secure API key storage
🙌 Feedback & Ideas
Have suggestions or feature requests?
This extension is actively evolving — feedback is welcome!
LinkedIn: Deep Vadaliya
👤 Author
Deep Vadaliya
Happy coding 🚀
| |