IntelliJ API to Build Scala Macros Support
Today we've released a new Scala plugin EAP build. With this build, we're happy to introduce an API that extends the IDE coding assistance to custom Scala macros. A macro is executed at compile-time and modifies the AST of your code: e.g. it can extend the class or its companion object with new methods or other code represented by the AST returned by the macro. Since IntelliJ IDEA's coding assi
IntelliJ IDEA 15 EAP Adds Postfix Code Completion for Scala
For Java, in addition to the regular completion, IntelliJ IDEA provides so-called Postfix completion: it lets you modify a previously entered expression by adding a "postfix" to it and pressing Tab. This way you can transform your code without unnecessary backward caret jumps. Many users've asked us to support this feature for Scala as well. You asked, we did it: When a transformation can be
We've recently improved the support for Scala tests in IntelliJ IDEA 15 EAP a bit. Read on to find out more details. Statically computed expressions in scalaTest/specs2/uTest2 test names are now supported, which means that along with string constants you can use constructions like immutable string variables, concatenation, substring, stripSuffix, stripPrefix, toLowerCase, replace, or trim.