First time here? Check out the FAQ!

Revision history  [back]

Is it possible to add a second Edge Marker and wrap docstring?

PEP 8 suggests statement lines should be limited to 79 characters and lines with comments and docstrings to 72 characters. In Preferences > Editor > Line Wrapping I can set a single Edge Marker that shows where that column is in the editor. There's also a setting Reformatting Wrap Column that can be set to a value different from the Edge Marker. So at first, I thought I'm out of luck, either my code will be wrapped at column 72 or my docstrings will be wrapped at column 79. But then came the surprise, the docstrings weren't wrapped. I mean they weren't wrapped at all. I had to do that manually.

Is there a way to turn on docstring wrapping at a user-configurable column? And if there's none, is it possible to add a second Edge Marker to have at least a visual crutch?

Is it possible to add a second Edge Marker and wrap docstring?

PEP 8 suggests statement lines should be limited to 79 characters and lines with comments and docstrings to 72 characters. In Preferences > Editor > Line Wrapping I can set a single Edge Marker that shows where that column is in the editor. There's also a setting Reformatting Wrap Column that can be set to a value different from the Edge Marker. So at first, I thought I'm out of luck, either my code will be wrapped at column 72 or my docstrings will be wrapped at column 79. But then came the surprise, the docstrings weren't wrapped. I mean they weren't wrapped at all. I had to do that manually.

Is there a way to turn on docstring wrapping at a user-configurable column? And if there's none, is it possible to add a second Edge Marker to have at least a visual crutch?