down voteaccepted
|
Found the answer via this question: Auto Code Completion on Eclipse Basically the auto activation trigger for auto-complete by default is set to only the character ".". To make code assist / auto complete trigger always, you have to change the string to:
In v21.x.x version of ADT, this is located in Preferences -> Java --> Editor --> Content Assist. |
you can also set auto completion to open automatically while typing: write .abcdefghijklmnopqrstuvwxyz in "Auto activation triggers for Java" field, in Java/Editor/Content Assist. see this question for more details: Automatically opening completion window in Eclipse |
|||||
|
Use the Auto Complete will also allow you to insert custom code templates into the editor, with placeholders for various inputs. For instance, attempting to auto complete the word "test" in a Java editor, in the context of a class body, will allow you to create a unit test that uses JUnit; you'll have to code the body of the method though. Some code templates like the former, come out of the box. Configuration options of interest
|