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.
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.
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 ...
Go to Settings / Preferences | Editor | General | Postfix Completion and select the Enable postfix completion checkbox.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With