Does anybody know if there is a way to get NetBeans code autocomplete to filter by 'contains' rather than 'starts with'.
E.g. MyClass has getBlaBla(), setBlaBla() and someOtherBlaBla()
I want to be able to say MyClass.BlaBla and for the code completion to suggest all three of the method names above. Would be really useful for when you dont quite remember what the method name was but know it contains that word.
To get auto popup code completion we go to Tools | Options | Editor | Code Completion. We select Java from the Language combo box. The option dialog window shows the option Auto Popup on Typing Any Java Identifier Part (What is in a name?). We must select the checkbox to get auto popup code completion.
If you go into NetBeans > Tools > Options > Editor > Code Completion, you can check or uncheck "Auto Popup Completion Window" for whatever Languages you want.
For future reference, this is implemented since NetBeans 7.4 and can be enabled in the options:
For Netbeans 8.0.2:
This is a really handy option :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With