Docquill – Python Docstring Generator
Type """ under a def or class and press Enter — Docquill writes the docstring skeleton for you, with arguments, types, defaults, return value, yields and raised exceptions already filled in. When you later add, rename or reorder arguments, Docquill updates the existing docstring without touching what you wrote. Google, NumPy and Sphinx styles.

Free
- Triple quotes → docstring. Type
""" on the line under a function and pick Generate docstring (Docquill).
- Command / shortcut.
Ctrl+Alt+D (Cmd+Alt+D on macOS) or right-click → Generate Docstring with the cursor on a def.
- Reads multi-line signatures, type hints (
dict[str, int], Optional[...]), defaults, *args / **kwargs, async def, self / cls, raise statements and generators.
- Keep docstrings in sync. Changed a signature? A lightbulb appears on the
def — or press Ctrl+Alt+U (Cmd+Alt+U). New arguments are added in order, renamed arguments keep their description, reordered entries follow the code, and type hints refresh the type part. Your descriptions, examples and notes stay byte for byte. Entries for removed arguments are only deleted after you say so.
- Classes and dataclasses. A class docstring lists its
__init__ arguments; a @dataclass gets an Attributes section from its fields.
- Type hints already say it? Turn on
docquill.omitTypesWhenHinted to leave types out of the docstring.
- Tab through the placeholders (
_summary_, _description_) to fill them in.
- Report. Docquill: Report Missing and Out-of-Date Docstrings counts functions with no docstring and docstrings whose arguments no longer match the code — common after AI assistants or refactors edit a signature.
- No account, no network, nothing leaves your machine.
Pro (one-time $9)
- AI docstrings with your own key.
Ctrl+Alt+Shift+D asks an AI to fill in the summary and every description from the function's actual code, keeping your chosen style. Use your Anthropic API key (stored in VS Code's secret storage) or a local model through Ollama — then your code never leaves your computer.
- AI rewrite. Run the AI command on a function that already has a docstring to rewrite it from the current code.
- Fill a whole file. Add every missing docstring in the current file at once — as instant templates or with AI.
- Update a whole file. Fix every out-of-date docstring in the current file in one go.
- Full report. List every missing and out-of-date docstring, with file and line.
Get Pro from the command palette: Docquill: Get Docquill Pro, then Docquill: Enter Pro License Key.
Settings
| Setting |
Default |
|
docquill.style |
google |
google, numpy or sphinx |
docquill.quoteStyle |
""" |
or ''' |
docquill.generateOnTripleQuotes |
true |
offer the docstring when you type triple quotes |
docquill.omitTypesWhenHinted |
false |
leave out types the signature already states |
docquill.sync.removeStaleEntries |
ask |
entries for removed arguments: ask, always or never remove |
docquill.ai.provider |
anthropic |
or ollama |
docquill.ai.anthropicModel |
claude-opus-5-5 |
any Anthropic model id |
docquill.ai.ollamaUrl / docquill.ai.ollamaModel |
http://localhost:11434 / llama3.1 |
|
Privacy
Free features run entirely inside VS Code. Pro sends the source of the selected function only to the AI provider you configured, and only when you run an AI command. The license key is checked with Polar (our payment provider) about once a week. No telemetry.
Works in
VS Code, Cursor, Windsurf, VSCodium and other editors that use the VS Code extension API (via the VS Code Marketplace or Open VSX).
Korean UI is included (한국어 메뉴 지원).
Also from the same author
Tagtrail – TODO Tree, FIXME Highlights & Export — every TODO, FIXME and HACK in your workspace in one tree, highlighted in the editor. Docstrings and TODOs: the two things that drift when code changes.
License
MIT