I have enabled all the soft wrap
settings that could be found in Intellij (2017.3):
The Appearance|General
agrees with that list:
I had hit "apply" - which typically actually does work for immediately viewing the effects - and also OK
on the Settings
dialog.. but to no avail / no difference / still no wrapping. I have tried several times.
This is a bit challenging with very long code lines. Thoughts?
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).
Right-click the left gutter and from the context menu, either select or clear the Soft-Wrap Current Editor option.
Go to Settings/Preferences | Editor | Code Style, select your programming language, and open the Wrapping and Braces tab. In the Keep when reformatting section, select the formatting rules which you want to ignore and deselect those which should be applied. Reformat your code ( Ctrl+Alt+L ).
You've picked the right option (File | Settings | Editor | General | Use soft wraps in editor
).
[Edit: As of IntelliJ v. 2019.1.3, possibly earlier, the options are now: (File | Settings | Editor | General | Soft-wrap files)
, with a list of filename extensions that should be soft-wrapped by default.
]
As it said in documentation:
If this checkbox is selected, soft wraps (or word wraps) are used in the editor. The horizontal scroll bar is not normally shown when this option is enabled. However, in certain cases, when a line cannot be "soft-wrapped", the horizontal scroll bar still appears (for example, if a line consists of a single string that is wider than the visible area.)
With the exception described above, when the parameter applied it will wrap the lines in editor
Right margin (columns)
parameter.In editor the margin displayed as a vertical gray line. It can be specified as File | Settings | Editor | Code Style | Right margin (columns)
.
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