Search code examples
javaintellij-ideaintellij-14

Is it possible to make IntelliJ perform "smart" soft wrapping?


Is it possible to make IntelliJ IDEA's soft-wrap behavior smarter? Here's some Java code (from PayPal's ghastly API) and the current soft wrapping behavior:

Current soft wrapping behavior

Here's the soft wrapping behavior I want to see:

Desired soft wrapping behavior

Note that I do NOT want to reformat the actual text in the file; I only want the display of this code to be smart. I use wildly different width monitors and windows from day to day; the code should "look right" on all of them. That doesn't mean "force everything to VT-100 standard 80 cols", as seems to be habitual among non-IDE users.


Solution

  • No, this is not currently possible. I believe that language plugins can customize soft wrap locations so that code is wrapped at meaningful locations, but wrapped lines cannot be aligned or indented in any way.