Eclipse,myeclipse Code hints feature

Source: Internet
Author: User
Tags foreach
Eclipse,myeclipse code hint function i installed myeclipse8.5 no code hint function, after some efforts finally settled, the specific process and share with you.
Turn on the Code hints feature: If it's eclipse's. Hint function is gone, set as below
window->preferences->java->editor->contentassist->advanced
The above tab select the proposal kinds contained in the ' Default ' content Assist list: Check the other Java proposals option on it. Since I'm using MyEclipse, in the Select the proposal kinds contained in the ' Default ' content assist list, it's been a half-day without the other Java proposals option, which has  One is Java proposals, put this item tick, try the code hint function can be used. Let eclipse, MyEclipse's code hinting feature be as powerful as Microsoft Visual Studio:
By default, Eclipse, MyEclipse's code hinting feature is much worse than Microsoft Visual Studio.
, mostly eclipse, MyEclipse itself has a lot of options that are turned off by default and should be manually configured by the developers themselves. If the developer is not sure, Eclipse is not known, and the MyEclipse Code hints feature is as powerful as the code hinting features of Microsoft Visual Studio.     give a simple example to illustrate the problem, such as in Eclipse, MyEclipse code, playing a foreach,switch and so on, is unable to get the code hint (do not believe himself to try), the others, not to mention, And in Microsoft Visual Studio, you get 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 (," meaning , which means encountering 26 letters and. (These symbols trigger the code hinting function.) (specifically, say, rest assured)   enhanced Eclipse, MyEclipse's code hinting feature, specifically how to configure. The following steps (note I use MyEclipse 6.0.1 to do): 1. Open MyEclipse 6.0.1, then "window" → "Preferences" 2.      Select "Java", expand, "Editor", select "Content Assist ”。 3.      Select "Content Assist" and see "Auto Activation triggers for Java" on the right, right side "auto-activation" "This option. 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 "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 configuration MyEclipse 6.0.1 information 9. Press "CTRL + F" shortcut key, enter ". ABC" and click "Find Next". 10. Find the configuration information for ". ABC" as follows: 11. Change ". abc" to ". ABCDEFGHIJKLMNOPQRSTUVWXYZ (,", Save, Close "TEST.EPF"). 12. Go back to the MyEclipse 6.0.1 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. Summary: 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 the
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.