By default, Content Assist is set to trigger when you type the period (.) character. This is useful, however in this guide I will show you how to get it to trigger at the beginning of a statement as well.
To customise how Content Assist works in Eclipse:
Step 1
Locate Preferences
- Mac: Eclipse > Preferences
- PC: File > Preferences (from memory)
![]() |
| Locate the Preferences in Eclipse |
Step 2
Select Java > Content Assist
In the Auto Activation settings:
- set Auto activation delay to 0
- set Auto activation triggers for Java to a single space followed by a comma (,), followed by a period (.). (by clearing the textbox & typing)
![]() |
| Content Assist settings in Preferences |
![]() |
| Changing the Auto activation triggers for Java |
Step 3
Apply > OK
Try it
- type a single space in your code file to see that Content Assist pops up immediately
- type a character to see that Content Assist filters the list to names starting with that character
- use the arrow keys to move through the list and hit enter to insert the name
- place a period after the inserted name to see that Content Assist pops up immediately
![]() |
| Type a space at the beginning of a statement to activate Content Assist. |
![]() |
| Type a period after a name to activate Content Assist. |





No comments:
Post a Comment