Skip to content

Improved or cusomizable Docstring Format #15009

@tbrodbeck

Description

@tbrodbeck

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

No one assigned

    Labels

    feature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions