Scala logo

Scala Plugin

Scala Plugin for IntelliJ IDEA and Android Studio

News

Smart Strings

String Literals just got a little smarter!

You can now convert a normal strings to multiline (with triple quotes) string.  Notice how the special characters are escaped. (SCL-2991)

Screen shot 2011-04-28 at 10.52.12 PM.png

Screen shot 2011-04-28 at 10.52.18 PM.png

And back again:

Screen shot 2011-04-28 at 10.52.28 PM.png

Screen shot 2011-04-28 at 10.52.36 PM.png

Similarly, when you paste some text into a normal string (for example: C:\path\file.txt), the appropriate escaping is added. (SCL-3144)

Finally, you can now autocomplete, navigate, and rename-refactor references to classpath resources in string literals. (SCL-3138)

Screen shot 2011-04-28 at 8.22.38 AM.png

These features require a nightly build of the plugin, with the latest EAP build of IDEA 10.5.