Versions Compared

Key

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

...

The .replace("\r"," ") intention lets you keep the carret 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.



5. How to Insert Inject Language/Reference Intention

You can inject language or a reference into your multi-line string literals.
Enter a multi-line string, press

span
classshortcut
Alt
+
span
classshortcut
Enter
and select Inject Language/Reference intention from the drop-down list.

Image Added
The list of available languages opens. Choose the appropriate one and press

span
classshortcut
Enter
.

Image Added
To cancel the language injection, simply choose the Un-Inject Language/Reference intention.

6. How to Edit Multi-line Strings Settings

You can set a different format for multi-line strings' options such as Margin char indent or Margin Char. You can also disable a multi-line strings support.
To open the Multi-line strings settings, in the main menu select

span
classshortcut
File
span
classshortcut
Setting
span
classshortcut
Project Settings
span
classshortcut
Code Style
span
classshortcut
Scala
. On the Scala page select the Multi-line strings tab.