Tips for completing eclipse code

Source: Internet
Author: User

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. The default setting in the text box on the Right of auto activation triggers for Java below is. And eclipse can enter up to four letters by default. 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.

In notepad, open the exported EPF file, press Ctrl + find, find the ABCD we just entered, and change the ABCD to abcdefg... ABC... XYZ ., when you enter a certain characterCodeThe Fill function will be enabled. If you think so, we suggest entering all the numbers from A to Z and the point number, in this way, the intelligent tag will appear if any character you typed belongs to it. After the modification, import it back. That is, select File-> Import-> gerneral-> preferences, find the saved file, and click Finish to import the file. At this time, it is basically O.

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.

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.