When I open files with very long lines, IntelliJ forcibly wraps the lines and gives this message this document contains very long lines. soft wraps were forcibly enabled to improve editor performance
.
Following the instructions from this link, I disabled soft wrapping in general editor settings, and used the help menu to create an idea.properties file, in which I added 'editor.soft.wrap.force.limit=nnnnn
.
https://intellij-support.jetbrains.com/hc/en-us/community/posts/206704105-Forced-Soft-Wrap-in-Active-Editor-Window
However, intellij continues to wrap these lines unless I specifically disable them in the active editor. Any suggestions?
Press ⇧⌘A (on Mac) or Control+Shift+A (on Windows/Linux) to open the Find Action dialog, and search for "soft-wrap". We get the option to turn on soft-wrap, which will be for this file only. You can click this option to turn soft-wrap on or off.
Wrap lines to eliminate the need of scrolling horizontally in order to see overly long lines. Enable soft wraps for the file types that tend to have lots of long lines (Preferences/Settings | Editor | General > Soft-wrap files).
A soft return or soft wrap is the break resulting from line wrap or word wrap (whether automatic or manual), whereas a hard return or hard wrap is an intentional break, creating a new paragraph. With a hard return, paragraph-break formatting can (and should) be applied (either indenting or vertical whitespace).
You should specify some large number instead of nnnnn
, like
editor.soft.wrap.force.limit=100000
Notice that editor may become very slow. Default limit is 10000.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With