This article describes how to set up the Eclipse Code auto-complete feature. Easily implement any letter you can enter the code completion prompt box.
The Eclipse Code AutoComplete feature defaults to only the point ".", that is, only the input "." The auto-complete prompt box appears. It is also troublesome to always press "ALT +/" To complete the auto-completion.
in fact, simply setting it in Eclipse allows you to enter any and all auto-completion prompt boxes.
The
setup steps are as follows:
- Select the Preferences item under the Windows menu in the Eclipse menu bar
- On the left, find "Java" = "Editor" = "Content Assist" (mouse click this)
- Find "Auto Activation triggers for Java" under the "Auto Activation" item on the right (you can see that the default in the Settings box is only ".", which is why the default is only "." To trigger an auto-complete window)
- At the midpoint of the box. Then enter the letter you want to trigger the auto-completion (the middle does not need to be separated, you can type it next to each other), such as: "Abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz.", Typing any uppercase and lowercase letters when you write the code will trigger an auto-fill window Popup
- OK when you are finished typing.
To
set the diagram:(1) (2)
PS: Most of the articles on the internet search are: Eclipse only supports 4-character code completion, to enter more characters need to be edited by a series of actions to achieve. This should be a feature of the previous version of Eclipse. The current new version no longer has this problem, directly set up can be implemented (above).
Eclipse Auto-Complete features Easy Setup | | No modification to edit any file