How can I get the PyCharm Fill Paragraph command to override the default?

PyCharm has a great Fill Paragraph command, the only problem is that it completes the right margin setting. The problem is that it is not PEP8 compliant. I want to set my right margin to 79 to follow PEP8, but I want my comment blocks to be 72 characters as PEP8 points out. When I run the Fill Paragraph command, I want it to wrap up to 72 characters, not 79. If this can't be done in PyCharm, then I probably just won't follow PEP8 it strictly; it is not worth wasting time to manually correct the length of comment lines, in my opinion, 79 will have to be done.

Literature:

http://legacy.python.org/dev/peps/pep-0008/

+3


source to share


2 answers


I found a feature-request about this: https://youtrack.jetbrains.com/issue/PY-15700 in the PyCharm bug tracker. You must vote for it to increase your priority and receive update notifications.



+1


source


Check out this plugin:

https://github.com/abrookins/WrapToColumn



This allows you to set a custom wrap line width. So setting this to 72 and running the shell on docstring works really well!

0


source







All Articles