how to change pycharm default commenting style for function?

Answered

How to change pycharm default commenting style for function?

consider

when you type """"" under a function definition, you will see Pycharm automatically create a commenting style for you.

like this

"""
validating the closure data in posteriori sense

:param config_dict:
:param states:
:param closure:
:return:
"""


I think it is ugly and want to change it to the style of Scikit-learn ( a python library). How?

4 comments

Hi Pswpeterpab! You can switch docstring style in Settings | Tools | Python Integrated Tools | Docstring format, you are looking for NumPy style I believe.

0

Can the commenting style be customized ? 

i.e, Numpy style may be adequate but one might want to customize some parts of the syntax.

0

Hi, do you mean a docstring style? Unfortunately, no. Please feel free to submit a feature request in PyCharm's bug tracker https://youtrack.jetbrains.com/issues?q=project:%20PyCharm

0

Thank you. I will submit the request

0

Please sign in to leave a comment.