Eclipse Code Auto-Complete

Source: Internet
Author: User

When you developed Android with Eclipse, you found that the code completion function was too poor to be completely like VS, and a code hint was entered in a single letter.

Here's how to implement similar vs code completion in Eclipse:

① Open the Eclipse->windows->preference and open the Preference interface.
② java->edit->content Assist is found on the right.
③ the option that appears to the right, there is an auto activation triggers for Java: The default content is "." (indicates that only input "." Code hints only).
④ on the top "." Replace with random characters, such as "asdf" (), and click OK to save.
Note: Some versions of Eclipse allow only 4 custom characters to be entered by default,
The eclipse version without this limitation can ignore the following steps and directly enter ". Abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz" (can be set according to your needs)
⑤ Open Eclipse's File->export, expand general->perferences in the window and click Next.
⑥ Select Export All and select the save path for the. epf file, Finish.
⑦ Open the saved *.epf file above, search for "asdf" just set, replace ". Abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz", save.
⑧ Open Eclipse's File->import, expand general->perferences in the window and click Next.
⑨ Select the *.epf,finish you have just modified.

You are done, you can re-enter windows->preference->java->edit->content assist to view the contents of auto activation triggers for Java:
Has changed to something that has just been modified, so enter how the letters and "." are entered in the code. There will be code hints.

PS: in [auto activation triggers for Java:] There is a [auto activation delay], the default is to enter a character 200 milliseconds after the code hint.
I set it to 20, coded happiness whining. Of course, the smaller the number, the higher the performance requirements for the system.

Eclipse Code Auto-Complete

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.