ReasonCode is an AI-powered VS Code extension that helps you understand, review, and safely improve code using Google Gemini — directly inside your editor.
Built with a safety-first approach, ReasonCode never changes your code without your approval.
✨ Features
🔍 Explain Selected Code
Select any code and get a clear, beginner-friendly explanation
Understand logic, flow, and intent instantly
Works with multiple languages (JavaScript, Python, C/C++, Java, and more)
🛠️ Suggest Fix / Refactor
AI reviews your selected code
Suggests bug fixes and improvements
Keeps original behavior intact
Shows a diff preview before applying anything
✅ Safe Apply (With Confirmation)
Fixes are applied only after you confirm
No silent edits
Fully undoable (Ctrl + Z)
🔐 Smart & Secure API Key Handling
Uses Google Gemini
API key is stored securely via VS Code SecretStorage
You enter the key only once per machine
❗ If the API key is invalid or expired:
ReasonCode automatically clears it
You are prompted again on the next run
No manual cleanup required
🚀 How to Use
1️⃣ Explain Code
Select code in the editor
Open Command Palette (Ctrl + Shift + P)
Run:
View the explanation in the ReasonCode Output Panel
2️⃣ Suggest Fix / Refactor
Select code
Open Command Palette
Run:
View the explanation in the ReasonCode Output Panel