I have my IntelliJ editor configured to reformat lines that are longer than 120. It does some lines no problem. For example
val myVar = function(param1, param2, ......... paramN)
transitions to the following automatically without issue (running reformat)
val myVar = function(
param1, param2, ......... paramN
)
However, it seems to have trouble with long strings. It should be equivalent to change
fail("I am a really long string ..... greater than 120 characters")
to
fail("I am a really long string "
+ "..... greater than 120 characters")
Why won't the editor do this for me? This is a Kotlin project.