ajile
ajile

Reputation: 686

Howto add documentation comment in PyCharm IDE

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

Answers (2)

Ofer
Ofer

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

CrazyCoder
CrazyCoder

Reputation: 401975

Alt+Enter (activate intention action), Insert documentation string stub.

Upvotes: 4

Related Questions