Tips for completing Eclipse code

Source: Internet
Author: User
Blog.sina.com.cnsblog_5aaa8c540100cvhy.html people who use Eclipse to change Java certainly feel that Eclipse is not very intelligent at all. They only need to completely name a class and then add the method attributes after a vertex. For example, in Eclipse, we only need to input System and then add a point. After n is long, S will be displayed.

Http://blog.sina.com.cn/s/blog_5aaa8c540100cvhy.html using Eclipse changed Java people certainly feel that Eclipse is not very intelligent at all, only a class name complete knock out, and then add a point after the method attribute will come out. For example, in Eclipse, we only need to input System and then add a point. After n is long, S will be displayed.

Http://blog.sina.com.cn/s/blog_5aaa8c540100cvhy.html


Those who use Eclipse and have changed to Java certainly feel that Eclipse is not very intelligent at all. They only need to completely name a class and then add a vertex to the method attribute. For example, in Eclipse, we only need to enter System and add a point. After n is long, the attributes and methods in the System class will be displayed.

In fact, we can set this by ourselves (I am using the English version 3.3). The process is as follows: Select windows> Preferences in the menu bar, select the java node> Editor> Content Assist. . As shown in:

Find the Auto-Activation option. In the following Auto activation triggers for Java field, the default value is.. By default, Eclipse can enter up to four letters. In this case, enter abcd and save it.

The next step is to Export our preference File. Select File> Export> Gerneral> Preferences in the menu bar, select Export all, and click Browser to select the directory where the preference File is saved, remember this Directory, which will be used later. Click Finish. The preference file is exported. The default format is. epf. The purpose of this is that Eclipse restricts our modifications, so we can only export the preference setting file first, and then manually modify it before importing it in.

Ps: Have you noticed the latency of 200 in the smart box, in ms. Of course, if you think it is 200 slow, you can reduce the value. Of course, there is a price for it. Eclipse will certainly consume more system resources. All settings are personal preferences.

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.