You can choose different intention options for Scala multi-line strings. Place your cursor on the string and press
For example, if you select Convert to "String" option, you will see the following result:
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.