When coding with Geany, I often have quite long lines. I want them to wrap automatically, so that I don`t have to scroll horizontally to see what I've written.
4 Answers
Press Alt+D and then L to toggle line wrapping on or off.
Line wrapping off
Line wrapping on
-
2Is there any way to make geany wrap on the long line marker column, rather than at the edge of the doc?– BenubirdFeb 28, 2016 at 21:35
-
good, it is easy to toggle! would be better if there was a direct shorcut or even an icon. I use wrapping when reading some text, and no wrap when coding, thx!– VeganEyeNov 7, 2020 at 21:00
Go to Edit
> Preferences
. In the Preferences dialog, go to Editor
> Features
and then check the first checkbox (the one corresponding to "Line wrapping") :
-
7I activated that. But my lines are anyway about 4 to 5times my screen wide. Jun 20, 2013 at 14:16
-
9This did not work for me, so I closed the file and re-opened it, and then it worked. Nov 13, 2014 at 7:58
-
2
-
4This options works, but the
Line wrapping
option in Edit > Preferences > Editor does nothing. Weird.– dw1Nov 30, 2018 at 10:26 -
There are three related parameters!
- 'Document', 'Line Wrapping' checkbox;
- 'Edit', 'Preferences', 'Editor', 'Features' tab, 'Line breaking column' numeric field;
- 'Edit', 'Preferences', 'Editor', 'Display' tab, 'Long line marker' section, 'Column' numeric field.
In the 'Long line marker' section, you can also set the type of the marker and it's color.
-
Just to clarify: if set in 'Edit', 'Preferences', 'Editor', 'Features' tab, 'Line breaking column', then line breaking is automatically enabled on newly opened documents. If the document was opened before that option was set, then 'Document', 'Line Wrapping' is the way to go.– ClémentOct 8 at 14:59