forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionality
Description
It is great that VS Code support automatic docstring generation in Python. I am just missing one Docstring Format that is optimal for my needs. It would also be helpful to fully customize and create your own Docstring format to choose from.
Format right now (using Google format)
"""[summary]
Args:
lmNameOrID (str): [description]
corpora (list, optional): [description]. Defaults to [].
grammars (list, optional): [description]. Defaults to [].
wordsFiles (list, optional): [description]. Defaults to [].
corporaPath (str, optional): [description]. Defaults to 'agent-assist-speech-to-text/in/corpus/'.
grammarsPath (str, optional): [description]. Defaults to 'agent-assist-speech-to-text/in/grammar/'.
wordsPath (str, optional): [description]. Defaults to 'agent-assist-speech-to-text/in/custom_words/'.
retrain (bool, optional): [description]. Defaults to False.
"""
Improved format
"""[summary]
Args:
lmNameOrID (str): [description]
corpora (list, optional): [description]. Defaults to [].
grammars (list, optional): [description]. Defaults to [].
wordsFiles (list, optional): [description]. Defaults to [].
corporaPath (str, optional): [description]. Defaults to 'agent-assist-speech-to-text/in/corpus/'.
grammarsPath (str, optional): [description]. Defaults to 'agent-assist-speech-to-text/in/grammar/'.
wordsPath (str, optional): [description]. Defaults to 'agent-assist-speech-to-text/in/custom_words/'.
retrain (bool, optional): [description]. Defaults to False."""
This is still a viable Google Format docstring I prefer because it simply takes less space than the original Google format. It would be great if this would be supported by VS Code in some way.
Metadata
Metadata
Assignees
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionality