An inspired vscode extentions for creating python docstring on new functions/methods.
- Inspects function parameters and creates a params stub per param
- High light the entire function definition
- Bring up the command palette
- OSX: ⌘ + Shift + P
- Windows: Ctrl + SHift + P
- Linux: Ctrl + SHift + P
- Add Py Docstring
Name | Description | Options |
---|---|---|
pydocs.style |
Sets the doc style you want, currently supports google doc style and numpy docstyle | *google *numpy |
- Setup keyboard shortcuts
- Get return type
- Clean up code
- Update comments on change
- Discover raised exceptions
- If EOF is directly below a function definition, comments will fail to appear
- If line underneeth a function definition is not empty you may yet badly formated docstring
Thanks to the guys at Microsoft for providing working code that I could bastardise to get this working.
Welcome