Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable python docstring insertion in 2016.1 Intellij IDEA/Python Community Edition 5.1.145.45

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.

like image 490
user48956 Avatar asked Apr 06 '16 17:04

user48956


1 Answers

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

like image 59
Oluwafemi Sule Avatar answered Nov 20 '22 07:11

Oluwafemi Sule