如何在 PyCharm 中设置最大行长度? [英] How do I set the maximum line length in PyCharm?

查看:134
本文介绍了如何在 PyCharm 中设置最大行长度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am using PyCharm on Windows and want to change the settings to limit the maximum line length to 79 characters, as opposed to the default limit of 120 characters.

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

Where can I change the maximum amount of characters per line in PyCharm?

推荐答案

这是我的 Pycharm 的屏幕截图.所需的设置在以下路径中:File ->设置 ->编辑器->代码风格 ->常规:右边距(列)

Here is screenshot of my Pycharm. Required settings is in following path: File -> Settings -> Editor -> Code Style -> General: Right margin (columns)

这篇关于如何在 PyCharm 中设置最大行长度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆