Eclipse Smart Tips (original)

Source: Internet
Author: User

If you use the default smart prompt when using eclipse, it will be depressing (only input. and jumps out in 0.2 seconds. If you have used vs, you will surely feel that the development efficiency of eclipse is too low.

This is not the case. Eclipse is actually very powerful, the key is whether you will set it.

1: Open eclipse, window-preferences-Java-Editor-content assist (content assist)

2: Modify auto-activation on the right.

I. Auto activation delay is a smart prompt response time (MS)

Ii. Auto activation triggers for Java (Java automatic activation trigger) what triggers the Java smart prompt (default .) -- If you want to enter a-Z and so on, you only need to modify it here, but some eclipse can only enter 4 characters, so it is relatively difficult to set it.

Iii. Auto activation triggers for javadoc (automatic activation trigger of javadoc) what triggers the javadoc smart prompt (not used)

If auto activation triggers for Java can only contain 4 characters, perform the following operations.

1: Open eclipse, window-preferences-Java-Editor-content assist (content assist)

2. Select Content assist (content assist)

3. In the auto activation triggers for Java (Java's auto-activation trigger) option, add the ABC letter after "." (to facilitate later search and modification ). Click "Apply" and then "OK ".

4. Then, "file" → "Export (export)", select "general" perferences (preferences) "in the pop-up window, and click" Next ".

5. Select export all, select the export file path, enter "test" as the file name, and click "save ".

6. Find the file "test. EPF" and open and edit it in notepad.

7. You can see a lot of eclipse configuration information.

8. search for the. ABC string.

9. Change. ABC to. _ abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz. Save and disable "test. EPF ".

10. return to the eclipse interface, file-> Import (import), select perferences (preferences) in the pop-up window "General", click "Next", and select the modified "test. open the EPF file and click Finish ".

After the operation is completed, the corresponding intelligent prompts are displayed when writing Java (of course, other files such as JS and HTML (JSP) can be set in this way to implement intelligent prompts. The operations are respectively

JS: javascript → editor → content Assis. HTML (JSP): Web → HTML files → editor → content assist)

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.