【问题标题】:Making Eclipse follow the PEP 8 formatting standards?让 Eclipse 遵循 PEP 8 格式标准?
【发布时间】:2011-08-23 09:09:34
【问题描述】:

有什么方法可以让 Eclipse 默认遵循PEP 8 代码格式化标准,并且在这些标准被破坏时显示警告?

【问题讨论】:

  • 调整 Eclipse 的编辑器设置?

标签: python eclipse pep8


【解决方案1】:

正如 ulidtko 在他的评论中所说,您可以设置 Eclipse Python 编辑器以某种方式生成代码。如果 Eclipse Python 编辑器有 Format 选项,您可以根据 Eclipse Python 编辑器设置格式化 Python 代码。

但是,您不能强迫任何人使用Format 选项。

【讨论】:

    猜你喜欢
    • 2017-05-28
    • 1970-01-01
    • 1970-01-01
    • 2017-06-26
    • 2012-11-06
    • 2011-06-02
    • 1970-01-01
    • 1970-01-01
    • 2011-08-04
    相关资源
    最近更新 更多