Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Comment GeneratorNew to Visual Studio Code? Get it now.
Comment Generator

Comment Generator

SmitAkbari

| (0) | Free
Instantly generate AI-powered documentation comments for any programming language. Supports Python, JavaScript, TypeScript, Java, Go, Rust, C#, C++, and 20+ more.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AI Comment Generator Extension

Generate AI-powered documentation comments directly inside VS Code.


Features

  • Generate documentation comments using AI
  • Supports multiple programming languages
  • Language-specific documentation styles
  • Configurable AI model and backend URL
  • Fast and simple workflow
  • Works directly from editor context menu

Supported Languages

Language Comment Format
Python """docstring"""
JavaScript / TypeScript /** */
Java / Kotlin / Scala /** */
C# /// <summary>
Go // FunctionName
Rust ///
C / C++ /** */
PHP /** */
Ruby # @param
Swift / Dart ///
SQL --
HTML <!-- -->
CSS / SCSS /** */
Shell / YAML / Dockerfile #

Usage

  1. Select code in the editor
  2. Right click
  3. Click:
Generate AI Comment

The generated documentation comment will be inserted automatically.


Keyboard Shortcut

Platform Shortcut
Windows / Linux Ctrl + Alt + C
macOS Cmd + Alt + C

Extension Settings

Open VS Code Settings and search for:

AI Comment

Available settings:

Setting Description
aiComment.llmModel AI model name
aiComment.maxTokens Maximum response tokens
aiComment.temperature AI creativity level
aiComment.requestTimeoutSeconds Request timeout
aiComment.showStatusBarItem Toggle status bar shortcut

Development

Install Dependencies

npm install

Compile Extension

npm run compile

Run Extension

Open the extension project in VS Code.

Press:

F5

This launches the Extension Development Host.


Package Extension

npm run package

License

MIT

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