How do I set the maximum line length in PyCharm?

Ansuman Bebarta picture Ansuman Bebarta · Jun 26, 2013 · Viewed 150.7k times · Source

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.

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

Answer

Alex G.P. picture Alex G.P. · Jun 26, 2013

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

Pycharm 4 Settings Screenshot