【问题标题】:How to enable python docstring insertion in 2016.1 Intellij IDEA/Python Community Edition 5.1.145.45如何在 2016.1 Intellij IDEA/Python Community Edition 5.1.145.45 中启用 python 文档字符串插入
【发布时间】:2016-06-13 17:28:07
【问题描述】:

IDEA 的 python 插件用于在 Python 中键入函数定义后,为函数定义插入文档字符串存根。但是,由于最近的更新,没有运气。同样 ALT+ENTER,在下拉列表中不提供插入文档存根的选项:(

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

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

【问题讨论】:

    标签: python intellij-idea pycharm


    【解决方案1】:

    将光标移到 def 关键字之后。然后按AlT+ENTER,从出现的下拉列表中选择insert documentation string stub

    【讨论】:

      猜你喜欢
      • 2010-12-17
      • 1970-01-01
      • 1970-01-01
      • 2019-09-26
      • 2016-10-18
      • 1970-01-01
      • 2021-03-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多