Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ctrl+Space overwrite method with the one selected

Tags:

java

eclipse

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.

like image 506
Gondim Avatar asked Nov 29 '10 15:11

Gondim


1 Answers

From the Menu: Window -> Preferences, select: Java -> Editor -> Content Assist

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

like image 124
Sean Patrick Floyd Avatar answered Sep 30 '22 12:09

Sean Patrick Floyd