How to turn on the Eclipse Code hints feature

Source: Internet
Author: User

To turn on the code auto-prompt function, first find the location of the setup prompt :

Open the Content Assist, Editor-and-perferences, Windows-I, Eclipse, Window, and find auto-activation in the bottom-right column, with three options below Item, find the second "Auto activation triggers for Java:" option in the text box that follows to see a "." Exist. This means: only enter "." Then there will be code hints and auto-completion, and that's where we're going to change.

Supposedly put the "." In the text box Replace it with ". Abcdefghijklmnopqrstuvwxyz"and you can. but! Eclipse does not allow such characters to be entered, and a maximum of 4 characters is allowed in the text box, so it is implemented by modifying the configuration file.

In a nutshell, Export the window-to-perferences configuration file, replace ". ABC" with ". Abcdefghijklmnopqrstuvwxyz", modify and then import the configuration file

The following steps are described:

1. Open eclipse, then "window" → "Preferences"

2. Select "Java", expand, "Editor", and select "Content Assist".

3. Select "Content Assist" and see the "Auto Activation triggers for Java" option under "Auto Activation" on the right. Actually, it means "." is the trigger code hint. This symbol.

4. "Auto Activation triggers for Java" option in "." After the addition of ABC letters, convenient to find the following changes. Then "Apply" and click "OK".

5. Then, "File" → "Export", in the pop-up window select "General" → "perferences", click "Next".

6. Select the export file path, I export to the desktop, enter "ABC" as the file name, click "Save".

7. On the desktop, locate the file "ABC.EPF" that you just saved, and right-select "Open with Notepad."

8. Press "CTRL + F" shortcut key, enter ". ABC" and click "Find Next".

9. Find the configuration information for ". ABC" as follows:

10. Change ". abc" to ". ABCDEFGHIJKLMNOPQRSTUVWXYZ (,", Save, Close "TEST.EPF").

11. Back to the MyEclipse interface, "File" → "Import", in the pop-up window select "Perferences", click "Next", select

Select the "abc.epf" file that you have just modified, click "Open" and click "Finish". This step is similar to the export step above.

12. After the modification, test it on the line.

How to turn on the Eclipse Code hints feature

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.