79428047

Date: 2025-02-10 19:04:59
Score: 5.5
Natty:
Report link

I see two options available here, where the options within tools or right clicking (depending on the version of spyder you are using) allows the user to select wrap lines.

With this enabled it does indeed wrap the display line, but it DOES NOT wrap to a new line number and automatically take care of indents, commas, etc. When it wraps, but does not add a line number, we will call this display wrapping, as shown below.

Showing a display line wrap.

Yet what I was looking for, and what I think the author was looking for was automatic line addition, similar to the image below.

Showing two lines on how one would hope line wrap or break is implemented.

In an older version of spyder, I think there was an option, where the line breaks were enforced (I could be misremembering and thinking of PyCharm). It seems this is only corrected if one chooses to apply code formatting on save, again see below.

Spyder6 Option for Automatic Code Formating on Save

Automatic Line Breaking as an option along side the display wrapping would be very nice. If I missed this option somewhere, please let me know.

Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know
  • RegEx Blacklisted phrase (1): I missed this option somewhere, please
  • Probably link only (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Braveheart