简体   繁体   中英

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:

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM