Enhance the eclipse code auto-Prompt Function

Source: Internet
Author: User

The code prompt function in eclipse code is usually clicked ". ", generally there is a dot". "to prompt the Code. If you want to enter a letter with a code prompt, you can perform the following Configuration:

1. Open eclipse and select "window"> "Preferences"
2. Expand "Java", expand "Editor", and select "content assist ".
3. See the "auto activation triggers for Java" option under "auto-activation" on the right. Actually, the code prompt is triggered by the "." symbol.
4. The "Auto activation triggers for Java" option should be followed by an ABC letter after "." To facilitate later search and modification. Click "Apply" and then "OK ".
5. Click "file"> "Export"> "general"> "Preferences" and click "Next ".
6. Select the export file path, export it to the desktop, enter "test" as the file name, and click "save ".
7. open the file "test. EPF" that you just saved on the desktop and use notepad or ultraedit to open it. You can see a lot of eclipse configuration information.

8. Press the "Ctrl + F" shortcut key, enter ". ABC", and click "find next ".
9. Find the configuration information of ". ABC.
10. Change ". ABC" to ". abcdefghijklmnopqrstuvwxyz (,". Save and disable "test. EPF ".
11. return to the eclipse interface, click "file"> "import"> "general"> "Preferences", click "Next", and select the modified "test. open the EPF file and click Finish ". This step is similar to the preceding export step.
12. Finally, perform Code testing. Create a new project, create a class, and enter switch and foreach in the code editing area. You will find a prompt, and there will be many related prompts no matter which letter you enter, which is very convenient.


Principle: The "Auto activation triggers for Java" option refers to the option that triggers the code prompt. "to". abcdefghijklmnopqrstuvwxyz (, "refers to 26 letters ,". "and" ("these symbols trigger the code prompt function.


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.