Typically in eclipse, MyEclipse code, playing a foreach,switch and so on, is not able to get code hints (do not trust themselves to try), and others, not to mention, while in the Microsoft Visual Studio The inside is getting very friendly code hints. In fact, Eclipse, the code hint function in the MyEclipse code is usually the point ".", which is usually a point "." Before a code hint is available. Principle: "Auto Activation triggers for Java" This option refers to the option to trigger the code hint, change "." To ". ABCDEFGHIJKLMNOPQRSTUVWXYZ (,", It means encountering 26 letters and. (These symbols trigger the code hinting function.) (specifically, say, rest assured) enhanced Eclipse, MyEclipse code hints function, specifically how to configure? The following steps (note I use MyEclipse 8.5 to explain).
- 2
Open MyEclipse 6.0.1, then "window" → "Preferences"
- 3
Select "Java", expand, "Editor", select "Content Assist"
- 4
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.
- 5
"Auto Activation triggers for Java" option, in the "." After the addition of ABC letters, convenient to find the following changes. Then "Apply" and click "OK".
- 6
Then, "File" → "Export", in the pop-up window select "Perferences", click "Next".
- 7
Select the export file path, I export to the desktop, enter "test" as the file name, click "Save".
- 8
On the desktop, locate the file "TEST.EPF" that you just saved, and right-select "Open with Notepad."
- 9
You can see a lot of information about configuring MyEclipse 8.5.
- 10
Press "CTRL + F" shortcut key, enter ". ABC", click "Find Next" to find the ". ABC" configuration information.
- 11
Change ". abc" to ". ABCDEFGHIJKLMNOPQRSTUVWXYZ (,", Save, Close "TEST.EPF").
- 12
Back to the MyEclipse 8.5 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.
- 14
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.
- 15
Version 6.5 does not work with alt+/solution
I use the myeclipse5.5 for System.out.println (); This thing I am syso then alt+/will appear System.out.println (), MyEclipse6.5 without any hint
Solution: Select Window-preferences-->general in the MyEclipse6.5 menu bar and look in the Keys:
1, the Content Assist shortcut key changed from Ctrl+space to alt+/.
2, the word completion shortcut keys from alt+/set to other non-conflicting shortcut keys.
3. Click OK to go.