![]() ![]() For more information, refer to the Language Injections documentation. Use the Inject Language/Reference intention to insert a language or a reference into your multi-line string literals.This intention lets you keep the caret at the correct place on the next line in the multi-line strings regardless of what operating system you have at the moment.Įnter a multi-line string, press Alt+Enter and select the appropriate intention from the list. The stripMargin method removes the left-hand part of a multi-line string up to a specified delimiter. If you press Enter, it will automatically invoke the stripMargin method. To enter a multi-line string, type triple quotes in your editor. Select Convert to "string" and press Enter. Press Alt+Enter to open the list of intentions. You also can convert the multi-line string into the regular string. Convert a string into a multi-line string using the Convert to """string""" intention and vice versa.Ĭonverting to multi-line strings removes escaped sequences such as '\\' or '\n'.Įnter your string, press Alt+Enter and from the list of intentions, select Convert to """string""".Insert gap with concatenation ("+ +") into a string. Use a Scala worksheet to quickly evaluate your results. You can add different intentions for strings, perform different actions, and set a different format for multi-line strings. IntelliJ IDEA lets you use different Scala intention actions, convert your code from Java to Scala, and use different Scala templates while working in the IntelliJ IDEA editor. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |