✨ Automatically generate meaningful code comments with AI inside Visual Studio Code.
Save time, improve readability, and write cleaner code with a single shortcut.

🚀 Features
- 🧠 AI-Powered Code Comments – Detects the programming language and generates context-aware single-line comments.
- ⚡ One Shortcut – Select code, press Ctrl + Shift + C, and get instant comments.
- 🌐 Language Aware – Supports JavaScript, Python, Java, C++, HTML, CSS, and more.
- 🎯 Clean Output – No extra formatting, only the correct comment syntax with plain English + emojis.
- 📋 Context Menu Support – Right-click any selection → Generate Command with AI.
- 🔄 Non-intrusive – Inserts comments above your selected code, keeping original code intact.
📸 Demo
Example output:
// Fetches user data from API and logs the name and email 📡👤
🛠 Installation
- Open Visual Studio Code.
- Go to Extensions Marketplace.
- Search for "Code Comment Generator AI".
- Click Install.
Or install directly via CLI:
code --install-extension command-generator
⚡ Usage
Select the code snippet you want to document.
Run the command:
- Press Ctrl + Shift + C
- Or Right-click → Generate Command with AI.
Wait a few seconds while the extension generates your comment.
Your new AI-generated comment will appear above the selected code.
💻 Example
a = 4
b = 5
c = a + b
print(c)
Output
# Calculates the sum of a and b and prints the result ➕📊
a = 4
b = 5
c = a + b
print(c)
🔧 Requirements
- Internet connection 🌐 (required for AI processing).
- VS Code version
^1.103.0 or later.
📌 Commands
Generate Command with AI
- Shortcut: Ctrl + Shift + C
- Context Menu: Right-click selected code
📋 Roadmap
- [ ] Multi-line descriptive comments
- [ ] JSDoc / Docstring style support
- [ ] Offline model support
- [ ] Comment style customization
🤝 Contributing
Pull requests are welcome! For major changes, please open an issue first to discuss.
📜 License
This project is licensed under the MIT License.
👨💻 Author
Thinakaran Manokaran
🌐 thinakaran.dev
🐦 Twitter
💼 LinkedIn
🔍 SEO Keywords
VS Code Comment Generator, AI Code Comments, Code Documentation AI, VSCode Extension for Code Comments, Thinakaran Manokaran, Auto Generate Comments, AI Code Helper, Code Readability Tool, Developer Productivity, Automatic Code Documentation.