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

ReasonCode

ReasonCode

|
15 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 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

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

2️⃣ Suggest Fix / Refactor

  1. Select code
  2. Open Command Palette
  3. Run:
  4. View the 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 whether to apply the fix

🔑 API Key Setup

ReasonCode uses Google Gemini.

  1. Get an API key from Google AI Studio: https://aistudio.google.com/app/apikey
  2. Run Explain Selected Code
  3. Paste your API key when prompted

🔒 Your key is stored securely and never logged or shared.


🌍 Language Support

ReasonCode is language-agnostic and works with any programming language Gemini understands, including:

  • JavaScript / TypeScript
  • Python
  • C / C++
  • Java
  • Go, Rust
  • HTML / CSS
  • And more

📦 Version History

0.1.x

  • AI-powered code explanation
  • AI fix / refactor suggestions
  • Diff preview before apply
  • Safe apply with confirmation
  • Secure API key storage
  • Automatic reset for invalid API keys
  • Bundled & optimized extension build

🧠 Why ReasonCode?

  • Built for learning + productivity
  • Transparent AI behavior
  • Safe by default
  • No forced changes
  • Designed for real-world development workflows

👤 Author

Deep Vadaliya

Happy coding 🚀

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