autoDocstring - Python Docstring Generator installs statistics
By Nils Werner · VS Code Marketplace · Programming Languages
Generates python docstrings automatically
autoDocstring - Python Docstring Generator has 18,027,015 recorded installs on VS Code Marketplace, an increase of 1.0% over the past 30 days, ranking #62 of 2,515 tracked listings.
Rating: 4.91 / 5 from 68 ratings
About autoDocstring - Python Docstring Generator
autoDocstring: VSCode Python Docstring Generator
Visual Studio Code extension to quickly generate docstrings for python functions.

Features
- Quickly generate a docstring snippet that can be tabbed through.
- Choose between several different types of docstring formats.
- Infers parameter types through pep484 type hints, default values, and var names.
- Support for args, kwargs, decorators, errors, and parameter types
Docstring Formats
To turn off type generation in docstrings use the -notypes template of the desired format. The docBlockr format is a typed version of PEP0257.
Usage
Cursor must be on the line directly below the definition to generate full auto-populated docstring
- Press enter after opening docstring with triple quotes (configurable
"""or''') - Keyboard shortcut:
ctrl+shift+2orcmd+shift+2for mac- Can be changed in Preferences -> Keyboard Shortcuts -> extension.generateDocstring
- Command:
Generate Docstring - Right click menu:
Generate Docstring
Extension Settings
This extension contributes the following settings:
autoDocstring.docstringFormat: Switch between different docstring formatsautoDocstring.customTemplatePath: Path to a custom docstring template (absolute or relative to the project root)autoDocstring.generateDocstringOnEnter: Generate the docstring on pressing enter after opening docstringautoDocstring.includeExtendedSummary: Include extended summary section in docstringautoDocstring.includeName: Include function name at the start of docstringautoDocstring.startOnNewLine: New line before summary placeholderautoDocstring.guessTypes: Infer types from type hints, default values and variable namesautoDocstring.quoteStyle: The style of quotes for docstrings
Custom Docstring Templates
This extension now supports custom templates. The extension uses the mustache.js templating engine. To use a custom template create a .mustache file and specify its path using the customTemplatePath configuration. View the included google docstring template for a usage example. The following tags are available for use in custom templates.
Variables
{{name}} - name of the function
{{summaryPlaceholder}} - _summary_ placeholder
{{extendedSummaryPlaceholder}} - [extended_summary] placeholder
Sections
{{#args}} - iterate over function arguments
{{var}} - variable name
{{typePlaceholder}} - _type_ or guessed type placeholder
{{descriptionPlaceholder}} - _description_ placeholder
{{/args}}
{{#kwargs}} - iterate over function kwargs
{{var}} - variable name
{{typePlaceholder}} - _type_ or guessed type placeholder
{{&default}} - default value (& unescapes the variable)
{{descriptionPlaceholder}} - _description_ placeholder
{{/kwargs}}
{{#exceptions}} - iterate over exceptions
{{type}} - exception type
{{descriptionPlaceholder}} - _description_ placeholder
{{/exceptions}}
{{#yields}} - iterate over yields
{{typePlaceholder}} - _type_ placeholder
{{descriptionPlaceholder}} - _description_ placeholder
{{/yields}}
{{#returns}} - iterate over returns
{{typePlaceholder}} - _type_ placeholder
{{descriptionPlaceholder}} - _description_ placeholder
{{/returns}}
Additional Sections
{{#argsExist}} - display contents if args exist
{{/argsExist}}
{{#kwargsExist}} - display contents if kwargs exist
{{/kwargsExist}}
{{#parametersExist}} - display contents if args or kwargs exist
{{/parametersExist}}
{{#exceptionsExist}} - display contents if exceptions exist
{{/exceptionsExist}}
{{#yieldsExist}} - display contents if returns exist
{{/yieldsExist}}
{{#returnsExist}} - display contents if returns exist
{{/returnsExist}}
{{#placeholder}} - makes contents a placeholder
{{/placeholder}}
Changelog
Check the CHANGELOG.md for any version changes.
Reporting issues
Report any issues on the github issues page. Follow the template and add as much information as possible.
Contributing…
Description from the VS Code Marketplace listing.
- autodocstring
- docblockr
- docstring
- documentation
- generator
- keybindings
- numpy
- pydocstring
- python
- sphinx
- starlark
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar VS Code Marketplace Programming Languages plugins
All 20 autoDocstring - Python Docstring Generator alternativesData source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=njpwerner.autodocstring. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.