Eclipse - show android classes with the key combination CTRL + Space while developing?
I'am trying now to develop Android Apps using Eclipse. I have already installed the ADT Plugin and the Android SDK.
Now, I just want to see with the keys CTRL + Space the android classes(android packages) while typing a android method. For Example when i type OnCr
and press CTRL + Space, it should show me the methods like onCreate
, onCreateContextMenu
and so on.But when i press these combination there comes No Default Proposals
or something like that.
But if i type "ja" and press CTRL开发者_开发知识库 + Space it shows me all the java packages like java, java.awt and so on.
Or if i want to type for example System.out.println and just only type in System and press the CTRL+Space key i see that the System class is in the java.lang package and after a dought i can repeatly choose in the list a underclass of System class like out, in , getproperty and so on.
My question is what i must do in Eclipse so these function works for android packages or android classes whatever too?
I don't want ever type the full methodsnames to develop an application i want to choose it from the Proposals list. The own methods i have created are not a problem , i can see my own methods in the list but i want to see the android methods too.
I have read in many communitys about Content Assist in Preferences section in Eclipse. But i can only tick there some standard things like java proposal or java non-type proposal how to add android?
Or a Suggestion in which another IDE i can do it with these lists for android is acceptable,too.
By the way i am using Eclipse Helios.
Can you help me please
Thx
HaShLo BuRn
Working solution: I have deleted my Eclipse version. I had the Eclipse for Java Developers
version and i replaced it with Eclipse Classic 3.6.2
. I didn't have to reinstall the Android SDK.
Then I just install the ADT plugin in Eclipse Classic
and link it with the Android SDK and it works.
Are you actually starting from onCr...
or are you doing public void onCr...
? The first will give you auto-complete proposals and the second will not.
Try the following simple example:
package com.example;
import android.app.Activity;
public class AutoComplete extends Activity {
onCr//CTRL-SPACE here
}
This shows the list of suggestions fine for me in Eclipse 3.4.2 with no additional configuration.
精彩评论