Skip to content

Postfix Completion

pavlospt edited this page Sep 26, 2014 · 1 revision

You can think of it as a code completion that will generate code before the dot instead of after it. In fact, you invoke it just like a regular code completion: you type a dot after an expression.

E.g. to iterate a list, you could go "myList.for", press tab and it would generate the for loop for you.

You can get a list of what you can type by typing a dot after a statement and looking at the postfix keywords that come right after the regular code completion keywords. There is also a list of all available keywords in Editor → Postfix Completion

Some of my personal favorites:

  • .for (for a foreach)
  • .format (wraps a string in String.format())
  • .cast (wraps an expression in a type cast)

Clone this wiki locally