Question

I guess I'm a quick typer because if I type the characters

ArrayList myArray;
myArray.size(

NetBeans auto complete puts the following in my editor

ArrayList myArray;
myArray.add(someVar);

Why? Because the auto completion doesn't have time to find and filter all the method names by the time I type '('. So it takes the the first one from the list it has created and filtered so far: "add". Grrrr!!!

I want to keep method name completion, but I don't want it to happen on '('. I haven't been able to find out how to fine tune this awesome feature to stop it from mangling my code.

Was it helpful?

Solution

I cannot reproduce you problem in NetBeans 7.1.2. Maybe I'm not typing fast enough...

Take a look at the Options to switch off some of the code completion options: Tools->Options, select the Editor section, then the Code Completion tab. enter image description here

OTHER TIPS

A.S. This is a comment but I don't have the rep.

I definitely experience this issue, and similar ones in other IDEs like Eclipse or Qt Creator - though I can't always be bothered figuring out how they happened. For example in Qt Creator I type:

size_t len = array.size();

and it becomes

size_t len = array.size(;)

because it didn't recognize quickly enough that I wanted to type over the closing ')'.

It is even more annoying when the editor doesn't allow overwriting or tab-jumping those braces as you have to press Right arrow.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top