开发者

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():

bu开发者_JAVA百科t 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:

SomeClass.someOneElsesMethod()someMethod();

How do I do to when I press Ctrl+Space, and select a method it just overwrites? 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

In the resulting screen, find Insertion and set the selection to Completion overwrites.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜