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.