Visual Studio Code extension to quickly generate docstrings for python functions.
- Quickly generate a docstring snippet that can be tabbed through.
- Choose between several different types of docstring formats.
- Support for args, kwargs, decorators, errors, and paramter types
- More to come!
- Default (typed PEP0257)
- PEP0257
- Numpy
- Sphinx
Cursor must be on the line directly below the definition to generate full auto-populated docstring
- Press enter after opening docstring with triple quotes (""")
- Keyboard shortcut:
cmd+shift+2 - Command:
Generate Docstring - Right click menu:
Generate Docstring
This extension contributes the following settings:
autoDocstring.docstringFormat: Switch between different docstring formatsautoDocstring.generateDocstringOnEnter: Generate the docstring on pressing enter after opening docstringautoDocstring.includeDescription: Include dscription section in docstring
- Definition parser does not take into account commas in kwarg string or tuple defaults
- Add support for classes and modules
- Add unit tests
- Add ability to infer types
- Document code better
- Add more docstring formats
- Initial release
- Support for python functions
- Several activation methods
