[英]Ctrl+Space overwrite method with the one selected
How do I do to overwrite a method with the one i just selected? 如何用刚刚选择的方法覆盖一种方法? For example:
例如:
First I type 首先我输入
SomeClass.someMethod():
but then, I reminded that the method was another one, and the cursor was after the word some and before Method, when I press Ctrl+Space again, it shows up some methods, when i hit enter, my method now is something like this: 但是然后,我提醒该方法是另一个方法,并且光标在单词some之后和Method之前,当我再次按Ctrl + Space时,它显示了一些方法,当我按Enter时,我的方法现在是这样的:
SomeClass.someOneElsesMethod()someMethod();
How do I do to when I press Ctrl+Space, and select a method it just overwrites? 当我按下Ctrl + Space并选择一个刚被覆盖的方法时该怎么办? I used to work like this but can't remember how to do it.
我曾经这样工作,但不记得该怎么做。
Thanks. 谢谢。
From the Menu: Window -> Preferences
, select: Java -> Editor -> Content Assist
从菜单:
Window -> Preferences
,选择: Java -> Editor -> Content Assist
In the resulting screen, find Insertion
and set the selection to Completion overwrites
. 在出现的屏幕中,找到
Insertion
并将选择设置为Completion overwrites
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.