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
- Select code in the editor
- Right click
- 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
| |