I'm facing an issue in Arduino IDE v2.3.2 (and any other) where code lines wrap incorrectly, despite having plenty of space on the screen. I've tried uninstalling the IDE, deleting the C:\Users***\AppData\Local\Arduino15 folder, and reinstalling, but the problem persists. The lines break as if the screen isn't wide enough. Any advice would be appreciated!
Hi @fiddle-dee-dee. The line wrapping behavior of Arduino IDE is controlled by the Alt+Z keyboard shortcut. Maybe you accidentally enabled line wrapping by pressing that keyboard shortcut instead of the similar commonly used shortcut for Undo (Ctrl+Z).
You can press the Alt+Z keyboard shortcut repeatedly until the IDE has the line wrapping behavior you want. There are multiple different line wrapping settings, which are cycled through by pressing the shortcut, so you might have to press it multiple times to get to the behavior you are looking for.
If you aren't able to get the specific behavior you want, let me know and I'll provide instructions you can follow to get even more control over the line wrapping. But I think you will be able to get what you want from the Alt+Z keyboard shortcut alone.