Claude Function Summarizer
Automatically generate documentation comments (JSDoc, Docstring, etc.) for functions and classes using AI. Choose your preferred AI provider.
Supported Providers
| Provider |
Cost |
Requirement |
| Gemini API (default) |
Free tier available |
Gemini API key (Google account) |
| Claude API |
Pay-as-you-go |
Anthropic API key |
| Claude CLI |
Included in subscription |
Claude Code installed & logged in |
Features
- One-click summary generation — Place the cursor inside any function or class and run the command
- Language-aware formatting — Outputs JSDoc for TypeScript/JavaScript, Docstrings for Python, hash comments for Ruby/Shell, and more
- Multilingual output — Generate summaries in English or Japanese (auto-detected from VS Code locale)
- Secure API key storage — Uses VS Code's built-in SecretStorage, never stored in plain text
Supported Languages
| Language |
Comment Format |
| TypeScript, JavaScript, Java, C++, C#, Go, Rust, Swift |
/** JSDoc */ |
| Python |
""" Docstring """ |
| Ruby, Shell, YAML, PowerShell |
# Hash comment |
| Others |
/* Block comment */ |
Getting Started
Step 1: Choose a provider
Open VS Code Settings (Ctrl+,) and search for claudeSummarizer.provider. Set it to one of:
gemini — free, recommended for most users
claude-api — higher quality, pay-as-you-go
claude-cli — if you have a Claude Code subscription
Step 2: Set your API key (if needed)
For Gemini:
- Get a free key at Google AI Studio
- Run command:
Claude: Set Gemini API Key
For Claude API:
- Get a key at console.anthropic.com
- Run command:
Claude: Set Claude API Key
For Claude CLI: No key needed — just install Claude Code.
Step 3: Generate a summary
- Place the cursor inside a function or class
- Open the Command Palette (
Ctrl+Shift+P) and run Claude: Generate Function Summary
— or right-click and select it from the context menu
Extension Settings
| Setting |
Default |
Description |
claudeSummarizer.provider |
gemini |
AI provider: gemini, claude-api, or claude-cli |
claudeSummarizer.geminiModel |
gemini-1.5-flash |
Gemini model to use |
claudeSummarizer.claudeModel |
claude-sonnet-4-6 |
Claude model to use |
claudeSummarizer.language |
auto |
Summary language: auto, en, or ja |
License
MIT
| |