如何在2016.1中启用python docstring插入.Intellij IDEA / Python Community Edition 5.1.145.45

时间:2016-04-06 17:53:13

标签: python intellij-idea pycharm

IDEA的python插件用于在Python中键入函数定义后帮助为函数定义插入docstring存根。但是,由于最近的更新,没有运气。另外ALT + ENTER,在下拉列表中没有提供插入doctring存根的选项:(

This post显示了如何在旧版本中禁用此行为。我没有修改此设置或关闭任何内容: 文件>设置> Python集成工具>文档字符串格式

我还在新机器上安装了IDEA + PyCE - 同样的行为。

1 个答案:

答案 0 :(得分:2)

将光标移到def关键字后面。然后按AlT+ENTER,从显示的下拉列表中选择insert documentation string stubMove cursor to position right after <code>def</code> keyword Press ALT+ENTER