Overview Version History Q & A Rating & Review
THLABS DocGen - AI-Powered Documentation Generator
An AI-powered documentation generation tool for Visual Studio Code that automatically creates inline documentation for your code methods and generates summary documentation files using Google's Gemini AI.
Features
Inline Documentation : Adds concise documentation (4 lines max) above functions/methods
Summary Generation : Creates standalone output.md
with code summary
Google Gemini Integration : Powered by Google's latest AI models
VS Code Integration : Accessible via command palette, context menu, and dedicated panel
Installation
Install the extension from the VS Code Marketplace (or install from VSIX)
Restart VS Code
Configure your Google Gemini API key (see below)
Usage
Basic Commands
Open a code file
Run command THLABS - Document file
from Command Palette (Ctrl+Shift+P
)
Or right-click in Explorer and select "THLABS - Document file"
Open the side panel by clicking the DocGen icon in the Activity Bar and click "Run Command"
API Key Configuration
First run will prompt for your Google Gemini API key
Alternatively, set it in VS Code Settings:
Open Settings (Ctrl+,
)
Search for "THLABS DocGen API Key"
Enter your key in the provided field
Requirements
VS Code v1.98.0 or higher
Google Gemini API key (free tier available)
Internet connection (for API calls)
Extension Commands
Command
Description
Shortcut
thlabs-docgen.document
Generate documentation for current file
Ctrl+Alt+D
thlabs-docgen.showDocGenView
Show DocGen panel
-
Known Issues
Large files may hit API token limits
Complex code structures might generate imperfect documentation
Internet connection required for all operations
Changelog
v0.0.1
Initial release with basic documentation generation
Support for inline and summary documentation
VS Code panel integration
License
Pending