31

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.

Paul Woitaschek
  • 2,986
  • 7
  • 36
  • 62

4 Answers4

33

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

  • 1
    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 '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") :

enter image description here

air-dex
  • 5,829
  • 1
  • 21
  • 21
17

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

geany.png

Pilot6
  • 88,764
  • 91
  • 205
  • 313
bruno-martins
  • 181
  • 2
  • 6
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.