Android int replaced by android.R.integer in eclipse

Probably simple, but I can't figure out where to stop it. Every time I dial

int 

it is instantly replaced by

 integer 

and package

 import android.R.integer; 

automatically turns on.

Anyway, to prevent this from happening in Eclipse?

thanks

+7
source share
4 answers

I have activated automatic activation with all the characters included to activate triggers

.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

It was so that I could get auto suggestions for variables and function names, but it also made int turn into an integer.

The only way is to give it a delay that is slower than the time it takes to enter "int". My delay was 0, so I just set it to 100, and this works fine for me.

0
source

Perhaps you can try the following:

Settings -> Java -> Code Style -> Import Organization -> (check) Do not create import for types starting with a lowercase letter

I'm not sure if this helps, but let's try :)

+2
source

The way I overcome this problem is to enter "int" and then press ESC. I hope you feel it quickly.

+1
source

An integer is a class, int is a primitive type.

The Integer class wraps a primitive int value in an object. An object of type Integer contains a single field whose type is int.

0
source

All Articles