Overleaf: Hard line break in the editor to make code more readable

Created on 29 May 2015  路  3Comments  路  Source: overleaf/overleaf

Something I miss from Emacs Auctex extensions is the capacity to set a specific line length and
have the editor automatically insert a line break each time a word is written that goes over that limit.

Soft line break is achievable by resizing the editor window size, but this method has several problem :

  • A soft line break does not increase the line number;
  • The text is dependant on the window size and thus not displayed uniformly on different screens;
  • Makes error finding (from line number) that much harder.
    This feature would make for more readable LaTeX documents.

To implement this : probably add an option in the settings to specify the length (with 0 for no automatic hard line breaks). Another companion feature would be to reformat a selection. For example, you made modifications to the center of a paragraph and now a line is only half full. This companion feature would readjust all selected lines to maximally use each line by moving the line breaks.

Thanks for considering this!

enhancement

Most helpful comment

It's very much needed

All 3 comments

It's been a long time since this was brought up, but I was surprised it hasn't been implemented! I assume it's not an easy task, but I would like hard-wrapping as well!
Cheers!

Yeah the ticket is now almost 5 years up. I would love to see this feature in the hopefully near future

It's very much needed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vitorbaptista picture vitorbaptista  路  8Comments

mithodin picture mithodin  路  4Comments

ShellCode33 picture ShellCode33  路  4Comments

ranomier picture ranomier  路  4Comments

tacruc picture tacruc  路  3Comments