Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij IDEA CE 12 Android XML Code Completion not working

I just started to learning IntelliJ IDEA CE 12 for Android development, as an alternate to Eclipse.

IDEA is very quick and I'm beginning to like it.
However, when I try to edit Android XML file, the code completion never appears. In my office, I'm using MacBook Air (64bit), and when I tried Mac version, it worked beautifully.
In my home, I'm using Vista (32bit ver) and my laptop specs are not so good. (that's why I choose to change to IDEA from Eclipse...)

I have not changed any Settings after the installation. Is there any option(s) to enable code completion for Android XML editor? Or it is just the matter of machine's performance?

I know it's a rubbish question, but I really need help here.
Thank you in advance.

like image 363
Faust V Avatar asked Jan 22 '13 01:01

Faust V


People also ask

Why is IntelliJ autocomplete not working?

By default, IntelliJ IDEA displays the code completion popup automatically as you type. If automatic completion is disabled, press Ctrl+Shift+Space or choose Code | Code Completion | Type-Matching from the main menu. If necessary, press Ctrl+Shift+Space once again.

Does IntelliJ support XML?

IntelliJ IDEA brings powerful support for XML that includes structure validation, formatting ( Ctrl+Alt+L ) and indentation ( Ctrl+Alt+I according to the XML code style, importing unbound namespaces, viewing code structure, unwrapping and removing tags ( Ctrl+Shift+Delete ), generating DTD files and schemas from ...

How do I enable auto complete in Pycharm?

Go to Settings / Preferences | Editor | General | Postfix Completion and select the Enable postfix completion checkbox.


1 Answers

Please check that project is configured properly and your module has Android facet and Android SDK Platform in the dependencies.

IntelliJ IDEA performs indexing of the JSDK, Android Platform and your project when you open it for the first time. You need to wait for the indexing process to complete (progress is displayed in the status bar at the bottom).

Once indexing is complete, you should get all the code completion options available. If for some reason it still doesn't work, try File | Invalidate Caches and restart IDEA.

like image 119
CrazyCoder Avatar answered Oct 01 '22 18:10

CrazyCoder