Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Automate-CommentNew to Visual Studio Code? Get it now.
Automate-Comment

Automate-Comment

Manan

|
1 install
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

LinkedIn


Auto-Comment

Automate Your Documentation – Focus on Logic!

Table of Contents
  1. About The Project
    • Built With
  2. Getting Started
    • Installation
  3. Usage

About The Project

Auto-Comment is a powerful VS Code extension designed to automatically generate comments for your code, saving you time and improving documentation consistency.

Whether you're working on solo projects, team collaborations, or open-source contributions, maintaining clear and structured comments is crucial—but writing them manually can be tedious.

🔝

Built With

  • Node
  • Ollama
  • JavaScript
  • Vscode

🔝

Getting Started

✨ Never Lose Context Again! This extension automatically generates clear, concise comments for your code, ensuring developers (and future you 😉) understand it even after an eternity.

Installation

  1. Install the extension from VS Code Marketplace

  2. Ensure Ollama is installed.

  3. Download your preferred model:

ollama run qwen3:0.6b
  1. Alternativelly you can download any model and change the config int the package.json
    "properties": {
       "autocomment.model": {
         "type": "string",
         "default": "qwen:0.5b",
         "description": "Model to use for generating comments (e.g., qwen:0.5b, deepseek-r1:latest, wizardlm2:latest, qwen3:0.6b)"
       }
     }
    

🔝

Usage

✨ Generate Smart Code Comments in 3 Easy Steps!

  1. 📌 Set Your Preferred AI Model
  • Press Ctrl+Shift+P (or Cmd+Shift+P on Mac)

  • Search and select "Set Model"

  • Choose any model (e.g., llama3, mistral, deepseek-r1) → Ensure the model is downloaded via Ollama first!

    ollama pull [model-name]  # Example: `ollama pull llama3`
    
  1. 👩‍💻 Select Code to Document
  • Highlight any line(s) of code

  • Press Ctrl+Shift+P again

  • Search and select "Auto Comment"

  1. 💡 Enjoy AI-Generated Documentation!
  • A comment will appear automatically

  • For quick insertion, just type // and accept the suggestion

🔝

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