How can we speed up our coding when we're using eclipse? I would like to take advantage of Eclipse's hint function as one of the methods. Here are the steps to configure the Eclipse Lenovo feature (the Code hint feature):
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 and right. Actually, it means "." is the trigger code hint. This symbol.
"Auto activation Delay" This is the delay, can be set according to their own needs. I set it to 10.
4. "Auto Activation triggers for Java" option in "." After adding ABC letter, easy to find in the back
Modify. Then "Apply" and click "OK".
5. Then, "File" → "Export", in the pop-up window select "Perferences", click "Next".
6. Select the export file path, I export to the desktop, enter "test" as the file name, click "Save".
7. On the desktop, locate the file "TEST.EPF" that you just saved, and right-select "Open with Notepad."
8. You can see a lot of information about configuring eclipse
9. Press "CTRL + F" shortcut key, enter ". ABC" and click "Find Next".
10. Find the configuration information for ". ABC" as follows:
As follows:
/instance/org.eclipse.jdt.ui/content_assist_autoactivation_triggers_java=.abc
11. Change ". abc" to ". Abcdefghijklmnopqrstuvwxyz" or ". ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ (", Save, close " TEST.EPF ".
12. Go back to the Eclipse interface, "file" → "Import", in the pop-up window select "Perferences", click "Next", select just in the modified "TEST.EPF" file, click "Open", click "Finish". This step is similar to the export step above.
13. Finally, of course, the code is tested. Just create a new project and create a new class. Test in code input switch, foreach, and so on. You will immediately find that the hint, and no matter which letter will have a lot of relevant hints, very smooth, very convenient.
Summarize:
The "Auto Activation triggers for Java" option refers to the option to trigger the code hint and "." Change to ". ABCDEFGHIJKLMNOPQRSTUVWXYZ (," means that it encounters 26 letters and.) (These symbols trigger the code hinting function.)
By the way, modify the class name, interface name, etc. in different colors highlighted, can be configured in the "Java" → "Enditor" → "Syntac", the right to expand "Java" → "classes", tick "Enable" this option, choose their favorite color. There are, of course, other related color configurations. Not to mention it in detail. In fact, in the "Preferences" this thing, there are many things can be configured, so that MyEclipse optimization, specific to each person according to their own personal preferences to configure. Thank you.
PS: This setting is only for Java code hints to be enhanced, you can use the same method to modify the code hints for HTML and JavaScript enhancements
How to configure the Lenovo feature of Eclipse (GO)