9

IDEA's python plugin used to helpfully insert docstring stubs for function definitions after typing out the function definition in Python. However, since a recent update, no luck. Also ALT+ENTER, doesn't provide the option in the dropdown to insert a doctring stub :(

This post shows how to disable this behavior in older versions. I havn't modified this setting or turned anything off in: File > Settings > Python Integrated Tools > Docstring format

I also installed IDEA+PyCE on a new machine - same behavior.

Community
  • 1
  • 1
user48956
  • 14,850
  • 19
  • 93
  • 154

1 Answers1

5

Move your cursor right after the def keyword. Then press AlT+ENTER, select insert documentation string stub from the dropdown that appears. Move cursor to position right after <code>def</code> keyword Press ALT+ENTER

Oluwafemi Sule
  • 36,144
  • 1
  • 56
  • 81