在eclipse中自动完成一个语句

fas*_*ava 1 java eclipse ide

有没有办法在eclipse中自动完成一个语句?如果我输入

if (condition) 
Run Code Online (Sandbox Code Playgroud)

按下某个键后,它应该成为

if (condition) {
    // putting cursor here
}
Run Code Online (Sandbox Code Playgroud)

Thi*_*ilo 5

你可以继续输入{并输入,结束括号将自动完成,无需任何特殊命令:

if (  condition) { /* cursor here , enter */


if (  condition) { 
  /* cursor here */
}
Run Code Online (Sandbox Code Playgroud)

还有自动完成(Crtl-Space),它可以执行以下操作

if /* cursor here , Ctrl-Space */
Run Code Online (Sandbox Code Playgroud)

if ( /* cursor here */ condition) {

}
Run Code Online (Sandbox Code Playgroud)

要么

if ( /* cursor here */ condition) {

} else {

}
Run Code Online (Sandbox Code Playgroud)