Java Eclipse输入快捷方式跳得太远

Java Eclipse输入快捷方式跳得太远,java,eclipse,autocomplete,keyboard-shortcuts,Java,Eclipse,Autocomplete,Keyboard Shortcuts,我是Eclipse的新手,到目前为止我非常喜欢快捷方式。但是,当我键入for循环并使用类似.size()的内容时,按enter键会将我发送到循环条件之外 |标记光标所在的位置 //Pressing enter with my cursor here for (int i = 0; i < example.size(|)) //sends the cursor here for (int i = 0; i < example.size())| //在此处用光标按enter键 对于(

我是Eclipse的新手,到目前为止我非常喜欢快捷方式。但是,当我键入for循环并使用类似.size()的内容时,按enter键会将我发送到循环条件之外

|标记光标所在的位置

//Pressing enter with my cursor here
for (int i = 0; i < example.size(|))

//sends the cursor here
for (int i = 0; i < example.size())|
//在此处用光标按enter键
对于(int i=0;i

当我只想让它通过第一轮括号时。有办法解决这个问题吗?

你试过用TAB来代替吗?我是Mac电脑迷,我的Eclipse接受标签


此外,为了使用这些功能,您必须非常确保使用Eclipse为您列出的代码提示。

按两次右箭头键。实际上,按两次右箭头键会将my置于完全相同的位置。按一下就可以把它放在我想要的地方,但只要回车快捷键存在,我宁愿使用它。