Scala logo

Scala Plugin

Scala Plugin for IntelliJ IDEA and Android Studio

Early Access Program Features

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:

hachiko

When a transformation can be applied to several expressions, the IDE will offer you a choice:

Postfix1

Postfix completion suggestions are included in the common completion list, and if you want to see only postfix completion applicable in the context, press Ctrl + J (Cmd + J for OS X):

Postfix3

To see the full list of postfix completion templates, go to Settings → Editor → General → Postfix Completion:

Postfix2

Remember, we welcome your feedback on our discussion forum and your bug reports in the issue tracker.

Develop with Pleasure!