Invariably as code evolves, some lonely unused definitions are are left around. To help you find and eradicate these, IDEA now highlights unused vals, vars, and defs.
You can use the quick fix to delete the unused symbol.
Similarly, IDEA highlights needless vars, that is, ones that are never assigned to, with a quick fix to convert it to a val.
Currently this reference checking is not enabled for cross-file references, you still need to use Find Usages for these. This means that only locals and private class members are highlighted.
It is also disabled for implicit members, and for methods with special names (apply/unapply/update/map/flatMap/filter/withFilter/foreach), for which the reference checking is not yet comprehensive.
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)
And back again:
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)
These features require a nightly build of the plugin, with the latest EAP build of IDEA 10.5.
In Scala it’s not always obvious when some expression is an argument to a by-name parameter. New highlighting helps to easily spot such expression. Continue reading
In Scala, method signature semantics goes beyond method name, parameters and result type. The signature can also tell about whether a method has side effects, or whether a method represents a property.
However, sometimes we forget about writing proper definitions or method calls. That’s where 15 new method signature inspections may help. Continue reading
Type-aware highlighting is a part of error highlighting that relies on type system.
Some errors can be found without using type information, for example:
Other errors, however, require a knowledge of entities type:
Type-aware highlighting allows to spot such errors before compilation. Continue reading
Although the work on new Scala project configuration is still in progress, a brief clarification may come in handy. Continue reading
Type Info hint (Ctrl + Alt + Shift + T):
Toggle Type Annotation intention: