DJ Chateau
DJ Chateau

Reputation: 147

Having trouble IntelliJ IDE's auto-completion completing with a spacebar instead of a Tab

I was typing in IntelliJ IDEA 11.1.1 code and I typed in the word

public class AnimalTestDrive{
    public static void main(String args[]){
        MyAnimalList list = new MyAnimalList();
        Dog a = new Dog();
        Cat
    }

}

but when I went to put in a space it keep auto-completing with this:

public class AnimalTestDrive{
    public static void main(String args[]){
        MyAnimalList list = new MyAnimalList();
        Dog a = new Dog();
        Catalog
    }

}

I've spent a couple hours trying to find where to stop this behavior since I want to only auto-complete using Tab. Anyone else experienced this?

Because apparently I am too new, I can't answer my own question but I did figure it out.

Solution: I have managed to resolve this issue. There is an options located under File > Settings... > Editor > Code Completion > Change Preselect the first suggestion: From Smart to Never.

Upvotes: 2

Views: 841

Answers (1)

CrazyCoder
CrazyCoder

Reputation: 402533

This behavior can be disabled:

preselect

Another option is to increase Autopopup code completion delay.

Upvotes: 3

Related Questions