How to disable autocomplete method in open bracket in NetBeans 7.0?

I think I'm fast, because if I type

ArrayList myArray; myArray.size( 

NetBeans autocomplete adds the following to my editor

 ArrayList myArray; myArray.add(someVar); 

Why? Since autocomplete does not have time to find and filter out all the method names by the time "(" is entered, so he takes the first from the list that he created and has filtered so far: "add." Grrrr !!!

I want the method name to be completed, but I do not want this to happen "(" I could not find out how to properly configure this wonderful function to stop it from distorting my code. "/ P>

+4
source share
2 answers

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

See Options to disable some code completion options: Tools-> Options, select the Editor section, then the Code Completion tab. enter image description here

+5
source

A.ş. This is a comment, but I have no reputation.

I am definitely experiencing this problem, and similar in other IDEs such as Eclipse or Qt Creator, although I may not always be aware of how they happened. For example, in Qt Creator, I type:

 size_t len = array.size(); 

and he becomes

 size_t len = array.size(;) 

because he didn’t recognize fast enough for me to type over the closing ')'.

This is even more annoying when the editor does not allow you to rewrite or drag these curly braces, since you must press the right arrow.

0
source

Source: https://habr.com/ru/post/1390568/


All Articles