How do I set the maximum line length in PyCharm?
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Ocean Floor
--
Chapters
00:00 How Do I Set The Maximum Line Length In Pycharm?
00:24 Accepted Answer Score 603
00:39 Answer 2 Score 25
00:55 Answer 3 Score 83
01:26 Answer 4 Score 8
01:46 Thank you
--
Full question
https://stackoverflow.com/questions/1731...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #pycharm #pep8
#avk47
ACCEPTED ANSWER
Score 603
Here is screenshot of my Pycharm. Required settings is in following path: File -> Settings -> Editor -> Code Style -> General: Right margin (columns)
ANSWER 2
Score 83
For PyCharm 2018.1 on Mac:
Preferences (⌘+,), then Editor -> Code Style:
For PyCharm 2018.3 on Windows:
File -> Settings (Ctrl+Alt+S), then Editor -> Code Style:
To follow PEP-8 set Hard wrap at to 80.
ANSWER 3
Score 25
For PyCharm 4
File >> Settings >> Editor >> Code Style: Right margin (columns)
suggestion: Take a look at other options in that tab, they're very helpful
ANSWER 4
Score 8
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.


