Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

IntellijIDEA Intellij IDEA lets you add different intentions for strings and perform different actions with strings in Scala. IntellijIDEA Intellij IDEA also supports the Scala multi-line strings feature. This feature lets you format literals and helps your code to look more orderly.

...

The .replace("\r"," ") intention lets you keep the carret caret in the correct place on the next line in the multi-line strings regardless of what operating system you have at the moment.
Enter a multi-line string, press

span
classshortcut
Alt
+
span
classshortcut
Enter
and select the appropriate intention from the drop-down list.

...