Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Gemini AI Assistant
Gemini AI Assistant

Gemini AI Assistant

x-npis

|
28 installs
| (0) | Free
A powerful AI-driven coding assistant for Visual Studio 2022, powered by Google Gemini API. Features: 1. AI Symbol Rename: place your cursor on any symbol and get 3 context-aware naming suggestions i
Download

Gemini AI Assistant for Visual Studio 2022

A powerful AI-driven coding assistant for Visual Studio 2022, powered by the Google Gemini API. It integrates seamlessly into the editor's right-click context menu and provides intelligent code assistance for any programming language.


✨ Features

🏷️ AI Symbol Rename (3 suggestions)

Place your cursor on any symbol (variable, class, function, etc.) — no selection needed — and invoke the command. A custom UI window appears with 3 context-aware naming suggestions generated by Gemini. Choose a suggestion or type your own name, click Apply, and the rename is applied silently across the entire solution.

Works for C++, C#, and any other language supported by Visual Studio.

💬 Add Comments

Select a block of code and let Gemini add clear, concise comments to it. The AI strictly mimics the existing commenting style found in your file — if you use // line comments, it will use those; if you use Doxygen/XML, it will match that too.

🎨 Design Refactor

Improves naming conventions, readability, and indentation of the selected code according to language-specific best practices.

🔧 Code Refactor

Finds and fixes potential bugs, applies SOLID principles, architectural improvements, and performance optimizations.

🚀 Full Refactor

A deep architectural refactoring — applies design patterns, memory optimizations, composition over inheritance, and comprehensive documentation comments.


🚀 Getting Started

Prerequisites

  • Visual Studio 2022 (Community, Professional, or Enterprise)
  • A Google Gemini API Key (free tier available)

Installation

  1. Download the .vsix file from the Visual Studio Marketplace.
  2. Double-click the .vsix file — Visual Studio will install it automatically.
  3. Restart Visual Studio.

Configuration

  1. Go to Tools → Options → Gemini Assistant.
  2. Paste your Gemini API Key.
  3. Optionally adjust the Model Name (default: gemini-flash-latest) and Max Retries.

Usage

  1. Open any code file in the editor.
  2. Right-click to open the context menu.
  3. Navigate to Gemini Assistant and choose the desired command.

🛠️ Command Reference

Command How to use Effect
AI Symbol Rename Cursor on a symbol (no selection needed) Opens rename window with 3 AI suggestions
Add Comments Select a block of code Adds comments matching your file's style
Design Refactor Select a block of code Improves naming & readability
Code Refactor Select a block of code Fixes bugs, applies SOLID principles
Full Refactor Select a block of code Deep architectural refactoring

⚙️ Technical Details

  • Target IDE: Visual Studio 2022 (version 17.x)
  • Framework: .NET Framework 4.7.2
  • AI Provider: Google Gemini API (configurable model)
  • Rename Engine: DTE solution-wide find & replace (works across all languages)
  • Retry Logic: Automatic retries on HTTP 503 overload errors

📄 License

This project is licensed under the MIT License — see the LICENSE file for details.

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