How do I set the maximum line length in PyCharm?

后端 未结 6 861
有刺的猬
有刺的猬 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 12:05

    You can even set a separate right margin for HTML. Under the specified path:

    File >> Settings >> Editor >> Code Style >> HTML >> Other Tab >> Right margin (columns)

    This is very useful because generally HTML and JS may be usually long in one line than Python. :)

提交回复
热议问题