Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ReasonCodeNew to Visual Studio Code? Get it now.
ReasonCode

ReasonCode

ReasonCode

|
4 installs
| (0) | Free
Interactive AI code reviewer, fixer & explainer
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  1. Select code in the editor
  2. Open Command Palette (Ctrl + Shift + P)
  3. Run:
  4. View explanation in the ReasonCode Output Panel

2️⃣ Suggest Fix / Refactor

  1. Select code
  2. Open Command Palette
  3. Run:
  4. Review the diff preview
  5. Choose Apply Fix or Cancel

🔑 API Key Setup (One Time)

ReasonCode uses Google Gemini.

  1. Get a Gemini API key from Google AI Studio
  2. When prompted, paste your key
  3. 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 🚀

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft