8

In sublime text 3, it will be nice if a line break is inserted after wrapping the code after 80 characters. However, I have not found this plugin yet. Does anyone know the configuration/plugin?

I found the link for wrapping lines after 80 characters. 80-characters / right margin line in Sublime Text 3

Community
  • 1
  • 1
day
  • 1,047
  • 3
  • 11
  • 20

2 Answers2

11

I successfully used find-replace in Sublime Text:

replace

(.{80})

with

$1\n
Arend
  • 313
  • 2
  • 4
9

Check out AutoWrap. It will hard wrap automatically whenever you hit the ruler. It works nearly perfectly for me.

David J.
  • 31,569
  • 22
  • 122
  • 174
Thomas Lee
  • 1,312
  • 8
  • 17
  • Been looking for something like this forever. Most suggestions always just point to word wrapping which is only a local fix but won't retain the line width when pushing to source control. Thanks! – Greg Venech Dec 15 '17 at 20:07
  • 2
    I have tried it, but it doesn't break (add next-line character) when I go beyond set line width of say 80 columns – nurabha May 18 '19 at 18:10