For the Scala version 2.10 and later you also have the ability to convert a string concatenation into the interpolated string.
To do that, select a value with concatenation in your string and press
. The list of appropriate intentions opens. (You can also choose an option Convert to formatted string
and get your basic Java formatted string.)
Select Convert to interpolated string
and view the result.
3. How to Convert a
String into a Multi-line String
You can convert your string into a multi-line string. Simply press
and select Convert to """string"""
option in the drop-down list of intentions.