StringManipulation icon indicating copy to clipboard operation
StringManipulation copied to clipboard

Line breaking/wrapping at specific length

Open mark19142218 opened this issue 11 months ago • 0 comments

Apologies if this already exists in IntelliJ or this plugin

Is your feature request related to a problem? Please describe.

I would love an option to insert actual line breaks to prevent most lines being at most X characters long.

Likely useful:

  • Don't break words (unless the whole line is one word and it's too long?)
  • Preserve indentation
  • Use line break character configured in editor

I'm talking about actual line breaks, not

Describe the solution you'd like

  • Commit messages
  • Large string literals that are shown in UI
  • Reports in markdown or text format

Describe alternatives you've considered

Create an external command that uses the shell command fold on the whole file?

Additional context

Works well in combination with "7 -> 0. Remove all newlines"

mark19142218 avatar Feb 05 '25 16:02 mark19142218