I'm not sure why this is happening on this computer; it's never happened on any other. When I try to create a docstring for a function or class in pycharm, nothing happens. I.e.:
def foo(bar):
""""""
pass
Should insert a docstring upon pressing enter; instead it simply does:
def foo(bar):
"""
"""
pass
In order to solve this problem, I had to go into Settings -> Tools -> Python Integrated Tools
and reset the docstring format. I did so by changing Docstring format
from Epytext
to Plain
, clicking Apply
, then changing it back to Epytext
again and applying the change, and now everything works.
PyCharm version: 2021.1.2 (Community Edition)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With