Skip to content
Pinter Computing

Knowledge Base for IT Professionals, Teachers, and Astronauts

Pinter Computing

Knowledge Base for IT Professionals, Teachers, and Astronauts

  • Home
  • Programming
  • DevOps
  • Project Management
  • Software and Hardware
  • Miscellaneous
  • Egyebek
  • About
  • Experience
  • Education
  • Contact
  • Home
  • Programming
  • DevOps
  • Project Management
  • Software and Hardware
  • Miscellaneous
  • Egyebek
  • About
  • Experience
  • Education
  • Contact
Close

Search

Home/Knowledge Base/Comment2GPT AI extension in Visual Studio for multiple models
Knowledge Base

Comment2GPT AI extension in Visual Studio for multiple models

By Laszlo Pinter
May 28, 2025 3 Min Read
0

Visual Studio Community Edition is a free, popular IDE to develop C# business applications. AI assistance can enhance the development process and do the boilerplate creation.

As of writing, the most popular free extension that supports multiple AI models is Comment2GPT by Merry Yellow.

Installation

  • In Visual Studio Community Edition in the Extensions menu select Manage Extensions

  • On the Extension Manager’s Browse tab enter gemini into the search field

  • On the Comment2GPT panel click the Install button

For more information visit the Comment2GPT Visual Studio Marketplace page at Comment2GPT

Configuration

This extension supports multiple AI models, so we can select the best for our purpose, or the one that is allowed on by our company.

Google Gemini

Create the Gemini API key

To use Gemini in Commenct2GPT, we need to create a free Google Gemini API key.

  • In your web browser navigate to Get a Gemini API key
  • Click the Get a Gemini APi key in Google AI Studio

  • In the upper right cornet click the Create API key button

  • Follow the instructions and save the API key at a secure location
Select the model you want to use

For the list of Gemini model versions and IDs visit Gemini models. We will need the ID of the model to configure Comment2GPT.

For our example we will use the Gemini 2.5 Flash Preview 05-20 model with the ID: gemini-2.5-flash-preview-05-20 model as it provides free, balanced performance. Currently, the free tier allows 10 requests per minute (RPM), 250,000 tokens per minute (TPM) and 500 requests per day (RPD). This should be enough for software development.
Before you start to configure Comment2GPT, get the ID of the latest model you want to use.

PageURL
List of models to get the the model IDGemini models
PricingGemini Developer API Pricing
Rate limitsRate limits
Billing infoBilling
Configure Comment2GPT
  • In Visual Studio Community Edition in the Tools menu select Options

  • Collapse the Environment element, and in the Comment2GPT section select the General tab. Set the Platform to Google AI (Gemini)

  • On the Authentication tab paste the API key into the Google AI API Key field

  • On the Request tab enter the model ID into the set the Gemini Model field.

Using Comment2GPT

To ask Comment2GPT to generate code for you

  • Create a comment starting with the letters // gpt and type your request. For example:
// gpt write a function to retrieve aws canary results from cloudwatch

How it works

On the Comment2GPT Request tab the Instruction message fields contain long explanation for the model to process the Add, Chant, Complete and Edit requests. Copy the contents to a text editor to view the entire text. Very interesting read.

It is interesting, two identical requests generated entirely different results, one with 65 lines, the second with 196 lines of code.

Author

Laszlo Pinter

Follow Me
Other Articles
Previous

Data is Null. This method or property cannot be called on Null values.

Next

Debug a C# application in Visual Studio with command line arguments

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Last Changes

  • DevOps Engineering part 1. (Mac) - Make your Macintosh easier to use June 25, 2026
  • Japan travel tips June 22, 2026
  • How to stop the rain and snow in Cities: Skylines II June 20, 2026
  • Cities: Skylines II Developer Mode June 20, 2026
  • 'CSII_MANAGEDPATH' has incorrect path(s) when building Cities: Skylines II mod June 20, 2026

Tags

.NET .NETcore 3Dprinting ASP.NET Core AutodeskInventor AWS C# Chef cloud DevOps Docker EntityFramework Games Git Go iOS iPad iPhone iPod Java Kubernetes Linux MacOSX MSSQL MVC Node.js Packer PowerShell Python RDS RightScale Ruby security Splunk TeamCity Terraform TestKitchen Tomcat Ubuntu Vagrant VirtualBox VisualStudio Windows WordPress Xcode

Recent Comments

  • Zengei László on MyHeritage családfa exportálása és küldése emailben
  • Raúl Castillo on DynDns update error
  • MICHAEL on Windows Media Player 12 cannot find the album information
  • Nargis on Configure Epson ET-3850 scanning on Windows 11
  • Venczelné Zemen Erika on Delta S2302 termosztát programozása

–

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright 2026 — Pinter Computing. All rights reserved.