IntelliJ IDEA 15 EAP Adds Postfix Code Completion for Scala

Posted on by

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 applied to several expressions, the IDE will offer you a choice:

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):

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

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

Develop with Pleasure!