NetBeans parameter fill after code completion

Posted by byte on Stack Overflow See other posts from Stack Overflow or by byte
Published on 2010-05-30T01:06:10Z Indexed on 2010/05/30 1:12 UTC
Read the original article Hit count: 299

Filed under:
|
|

This is a particularly annoying problem I'm having, and I can't be the only one to have issue with it.

In NetBeans, when you type part of a method, then hit CTRL-SPACE, it displays the code-completion popup, whereupon you can hit tab to finish out the word. This is great, and pretty much how all IDE's operate.

Example:

Thread.sl

< CTRL-SPACE >

Thread.sleep

Yay!

Problem is that in this context, once you type in a paren, it auto-fills the parameters for the method with their default names, and inserts a closing paren (regardless of whether you have disabled the option to automatically close them on the preferences page for code completion). This behavior is NOT present if you had manually typed out the full name.

How is this helpful to anyone? You've got to type over it your actual variable that you will be passing, and NetBeans gives you no option to prevent the closing paren on code-completion.

Does anyone have a way to solve this issue, without having to dive into the netbeans source and build it just for this minor of an issue?

© Stack Overflow or respective owner

Related posts about java

Related posts about netbeans