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!

This entry was posted in EAP, New Features and tagged , , . Bookmark the permalink.

3 Responses to IntelliJ IDEA 15 EAP Adds Postfix Code Completion for Scala

  1. jotomo says:

    Great stuff!
    The postfix completions don’t show when the expression spans multiple lines. Is that a known limitation or a bug?

Leave a Reply

Your email address will not be published. Required fields are marked *