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 4


Press Alt+D and then L to toggle line wrapping on or off.

Line wrapping off

Line wrapping off

Line wrapping on

Line wrapping on

  • 2
    Is there any way to make geany wrap on the long line marker column, rather than at the edge of the doc?
    – Benubird
    Feb 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!
    – VeganEye
    Nov 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") :

enter image description here

  • 7
    I activated that. But my lines are anyway about 4 to 5times my screen wide. Jun 20, 2013 at 14:16
  • 9
    This 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
    Thanks. I also had to activate it in the "Document" menu.
    – Paul
    Jul 15, 2020 at 18:18

Open the menu Document and check Line Wrapping which is the top-most entry in the menu.


  • 4
    This options works, but the Line wrapping option in Edit > Preferences > Editor does nothing. Weird.
    – dw1
    Nov 30, 2018 at 10:26
  • This works on UBNTU 16.04 lts, Geany 1.33.
    – EsmaeelE
    Dec 8, 2018 at 8:21

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 8 at 14:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .