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.
Asked
Active
Viewed 1.7k times
4 Answers
35
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? – Benubird Feb 28 '16 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! – VeganEye Nov 07 '20 at 21:00
23
Go to Edit
> Preferences
. In the Preferences dialog, go to Editor
> Features
and then check the first checkbox (the one corresponding to "Line wrapping") :

air-dex
- 5,889
- 1
- 21
- 21
-
7I activated that. But my lines are anyway about 4 to 5times my screen wide. – Paul Woitaschek Jun 20 '13 at 14:16
-
9This did not work for me, so I closed the file and re-opened it, and then it worked. – Erel Segal-Halevi Nov 13 '14 at 07:58
-
2
17

Pilot6
- 90,100
- 91
- 213
- 324

bruno-martins
- 181
- 2
- 6
-
4This options works, but the
Line wrapping
option in Edit > Preferences > Editor does nothing. Weird. – dw1 Nov 30 '18 at 10:26 -
2
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ément Oct 08 '23 at 14:59