python - 如何在 PyCharm 中设置最大行长?

标签 python pycharm pep8

我在 Windows 上使用 PyCharm,并希望更改设置以将最大行长度限制为 79 个字符,而不是默认限制为 120 个字符。

我在哪里可以更改 PyCharm 中每行的最大字符数?

最佳答案

这是我的 Pycharm 的截图。所需设置位于以下路径:File -> Settings -> Editor -> Code Style -> General: Right margin (columns)

Pycharm 4 Settings Screenshot

关于python - 如何在 PyCharm 中设置最大行长?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17319422/

相关文章:

python - 皮查姆 : Failed to Create Interpreter Error occurred: Permission Denied - Windows 10

python-3.x - 在不违反 PEP-8 的情况下将 View 移动到单独的文件

python - 与 bool numpy 数组 VS PEP8 E712 的比较

python - 需要有关 Python RSYNC 脚本的反馈

python - Django 中的计数字段?

python - 未能安装 python 包(osmium)

Python,我需要返回作为参数传入的对象吗?

python - "continue"是逃离 try catch block 的 Pythonic 方式吗?

python - virtualenvwrapper - 环境变量不保存

python - 如何调试 "FileNotFoundError: [WinError 2] The system cannot find the file specified"?