Eclipse auto-completion function easy settings

Source: Internet
Author: User

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:
  1. Select the preferences under windows in the eclipse menu bar.
  2. Find "Java" = "Editor" = "content assist" on the left side (click this item)
  3. 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)
  4. 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.
  5. 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 ).

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.