Reputation: 686
In PhpStorm you can write /**
before any function/method/class and after pressing enter key and you will get autocompleted doc comment, that contain params, exception and return statements.
Similar functionality exists in PyCharm? I have tried to write '''
but it's don't work for me.
Upvotes: 1
Views: 2526
Reputation: 433
After typing the function heading (e.g., def myfunc(...)) and the following colon (:) press enter, then type """ (3 double-quotes), and press enter again.
Upvotes: 4
Reputation: 401975
Alt+Enter (activate intention action), Insert documentation string stub.
Upvotes: 4