How do I set the maximum line length in PyCharm?

后端 未结 6 791
有刺的猬
有刺的猬 2020-12-12 11:28

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

6条回答
  •  时光说笑
    2020-12-12 11:57

    For anyone, or myself if I reload my machine, who this is not working for when you do a code reformat there is an additional option to check under editor->code style->python : ensure right margin is not exceeded. Once this was selected the reformat would work.

    preference_highlighted

提交回复
热议问题