Editors like source insight have automatic complementing functions, but our powerful eclipse
(Mainly for Java) but not, you have to knock out every letter of the method or member every time,
It is really troublesome and inefficient. I searched the internet and found a good article:
Http://alorry.blog.163.com/blog/static/6472570820122883822790/
Eclipse auto-completion function easy setting | no need to modify or edit any files
This article describes how to set the eclipse code auto-completion function. You can easily enter any letter in the Code Completion prompt box.
By default, the automatic completion function of eclipse Code only includes ".", that is, the prompt box Indicating Automatic completion is displayed only after "." is entered. It is also troublesome to press "Alt +/" for Automatic completion.
In fact, you only need to simply set it in eclipse to enable the auto-completion prompt box for any input and compliance.
The procedure is as follows:
- Select the preferences under windows in the eclipse menu bar.
- Find "Java" = "Editor" = "content assist" on the left side (click this item)
- Under the "auto activation" item on the right, find "auto activation triggers for Java:" (you can see that the default setting box is ". ", which is why the default value is". "the auto-completion window can be triggered)
- Click ". "Enter the letters that you want to trigger auto-completion (do not separate them, just type them in sequence), for example," abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz. this will trigger the auto-completion window when you enter any uppercase/lowercase letters during code writing.
- After entering the information, click OK.
Settings:(1)
(2)
PS: most of the articles found on the Internet are described as follows: Eclipse only supports Code Completion with 4 characters. To enter more characters, you need to edit the file through a series of operations. This should be a feature of earlier versions of Eclipse. This issue does not exist in the current new version. You can set it directly (as described above ).