IntelliJ:补全if,do-while,try-catch,return句子的括号

原文为:

Use Ctrl+Shift+Enter to complete a current statement such as if, do-while, try-catch, return (or a method call) into a syntactically correct construct (e.g. add curly braces).

译文:

使用Ctrl+Shift+Enter来补全当前的语句,例如if语句、do-while语句、try-catch语句、return(或者是一个方法调用),让它们符合正确的语法结构。

诚然,这个快捷键非常好用,它可以实现下面这样的效果:

IntelliJ:补全if,do-while,try-catch,return句子的括号_第1张图片

你可能感兴趣的:(Java)