Versions Compared

Key

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

...


The white spaces are also preserved. Please see the following example:

Selecting Intentions for Scala Multi-line Strings

You can choose different intention options for Scala multi-line strings. Place your cursor on the string and press

span
classshortcut
Alt
+
span
classshortcut
Enter
.
Image Removed
For example, if you select Convert to "String" option, you will see the following result:
Image Removed
If you decide to convert it back to multi-line string, it will delete the escaped sequences such as '
' or '\n'.
The multi-line string is converted to the one-line string.

For examle, you can choose option Insert gap with concatenation. For the Scala version 2.10 and later you also have the ability to convert a string concatenation into the interpolated string.

Image Removed

...


Image Removed
The result is as follows:

Image Removed

How to Insert Replace Intention


Editing Multi-line Strings Settings

...