Ctrl + Space overwrite method with selected

How can I do to rewrite a method with only one selected? For instance:

I print first

SomeClass.someMethod():

but then I reminded that this method was different, and the cursor was after the word some and before Method, when I press Ctrl + Space again, it shows some methods, when I press enter, now my method is something like this:

SomeClass.someOneElsesMethod()someMethod();

How do I do it when I press Ctrl + Space and select a method that it just overwrites? I worked like that, but I don’t remember how to do it.

Thank.

+5
source share
1 answer

From the menu: Window -> Preferencesselect:Java -> Editor -> Content Assist

In the resulting screen, find Insertionand set for the parameter Completion overwrites.

+6
source

All Articles