Reorder eclipse support for android development

I am working on an Android application using Eclipse 4.2. I have content support created almost the way I want it. However, when I, for example, start typing int to create a Java int variable, the entry in Android.R.Integer in the content support is the main entry.
I have content support created by relevance. This is just annoying, because every time I want to make an int variable, I need to either press Esc or press Enter and remove "eger" from the end of the type.

Thanks in advance.

+4
source share
4 answers

You can use Preferences-> Java-> Appearance-> Type Filters to filter the sentences you want to ignore. I am wondering why you really need content support to create an int variable, it would be easier to just enter it. But if you really want this, you can enter an integer value, and then use the Ctrl-2-L combination to create a local variable.

+1
source

None of the solutions posted here really worked, so what I did was to go to

Java -> Appearance -> Type Filters

and add * int * (yes, this is an asterisk followed by an int, and then another asterisk).

Next to the filter you just added, check the box. Make sure it is installed.

The problem is solved (finally!)

+2
source

In Java-> Appearance> Type Filters

click add

type 'int *' → click ok.

Then, when you type int, the first is int instead of integer.

+1
source

Roll I am in the same boat. I have content support that automatically activates with every letter, because I find it extremely useful that way, but I have the same problem with int (eger) that you do.

I came up with several ways to handle this and thought that I would share them if you find one of them useful.

You can use Type Filter, since the proposed ralph works very well, you just do not get help when you really want Integer, which is not so important for the deal.

You can delay the content help long enough so that you can type "int" and type before it appears, which always gives you a delay. (In the settings-> Java-> Editor-> Content Assist there is a setting for automatic activation)

Or remove the 'i', 'n' and 't' from the automatic activation triggers (again in Preferences-> Java-> Editor-> Content Assist). This is the method I'm trying now, and seems to work with everything, even Integer, saving me the trouble of typing "ger" :).

0
source

All Articles