Search code examples
javaintellij-ideanetbeansintellij-14

Why is IntelliJ auto-complete so bad?


Coming from a Netbeans scene, currently I'm trying to change my current work IDE to IntelliJ-idea, and the change so far has been pretty good but there is an absolutely important factor that still hasn't convinced me about IntelliJ, the auto-complete & intellisense.

Assume that I'm trying to create a new instance of a Scanner object, if I type new Scanner on Netbeans pressing CTRL + SPACE it pops up the following dialog with all the constructor parameteres it can receive:

Arguments in Netbeans

But, on other hand in Intellij, not only I need to add two parentheses in object declaration, when I press CTRL + SPACE it doesn't pop me the constructor arguments

Arguments in Intellij.

Click on images to see both Netbeans and Intellij results since I can't incorporate images due to being a new user.

EDIT!!!!!!! See this answer for a possible solution for my problem


Solution

  • IntelliJ tries to find members that matches what you already typed fuzzily, so yeah, it does mean that you have to type more to get the correct completions. On the other hand, it gives you classes that you have not even imported yet, and imports it automatically for you if you select it.

    About the constructor, it does show you all the overloads if you press (:

    enter image description here

    Alternatively, you can use this menu item (or its corresponding shortcut):

    enter image description here

    Don't forget that you can configure code completion in lots of ways in the settings:

    enter image description here

    Note the "Parameter Info" section. Make sure you have set the "Autopopup in:" setting properly.