> For the complete documentation index, see [llms.txt](https://einverne.gitbook.io/intellij-idea-tutorial/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://einverne.gitbook.io/intellij-idea-tutorial/tips-postfix-completion.md).

# IntelliJ IDEA Tips & Tricks: 后缀补全

可能听名字比较奇怪，但是看演示

![postfix completion](https://github.com/einverne/intellij-idea-tutorial/tree/78789f5efb4007ce43e451beacc4e724db0dc3b7/images/postfix-completion.gif)

对于 Java 有如下

* fori 正序遍历collection
* forr 逆序
* switch
* sout 打印表达式 System.out.println
* null 检查是否为null
* notnull 检查不为null
* try 添加 try

## reference

* <https://www.vojtechruzicka.com/intellij-idea-tips-tricks-postfix-code-completion>
