Http://www.cnblogs.com/likwo/archive/2010/04/28/1722802.html
1. Solves the problem of automatically completing unnecessary words during instantiation.
2. ToMy eclipse 6.5Redraw
In view of the strong voice of criticism on the internet, I just want to explain my thoughts: This enhancementCodeTip: it is ultimately used to assist us in development and improve development efficiency, rather than to satisfy the lazy behavior of "Don't knock so much code. Beginners can get some class names that are easy to forget and easy to forget through prompts (for beginners, a lot of things are only used less), reducing repeated queriesAPIThe pain. For experts, you don't need to say much. Everyone has their own shortcut keys, but they are still very popular. Here, the enhanced code prompt is to play such a role to speed up coding, improve development efficiency. Of course, it takes a little time for everyone to adapt to this code prompt and make good use of it. If you use it, you will naturally get twice the result with half the effort.
By default, the code prompt function of eclipse and myeclipse is much worse than that of Microsoft Visual Studio, mainly eclipse. myeclipse has many options which are disabled by default, you need to manually configure the configuration by the developer. If you are not clear about eclipse, the code prompt function of myeclipse is as powerful as that of Microsoft Visual Studio.
First, let's give a simple example to illustrate the problem. For example, by default, in eclipse and myeclipse code, make a foreach, switch, and so on, you can't get code prompts (do not believe it yourself), let alone others, but get very friendly code prompts in Microsoft Visual Studio. In fact, in eclipse, the code prompt function in the myeclipse code is usually clicked "." by default, and the code prompt is usually clicked.
Principle:The "Auto activation triggers for Java" option is the option that triggers the code prompt. "to". abcdefghijklmnopqrstuvwxyz (, "refers to 26 letters and ., (These symbols trigger the code prompt function. (Rest assured, as mentioned later)
Enhance the code prompt function of eclipse and myeclipse 6.5. How can I configure it? The following describes the procedure (note that myeclipse 6.5 is used for explanation, and the principles of others are the same ):
1. Open myeclipse 6.5, and then "window" → "Preferences"
2. Select "Java", expand, "Editor", and select "content assist ".
3. Select "content assist", and then you will see the "auto activation triggers for Java" option under "auto-activation" on the right. In fact, it refers to the "." symbol that triggers the code prompt.
4. The "Auto activation triggers for Java" option adds the ABC letter after "." To facilitate subsequent search and modification. Then, "Apply" and click "OK ".
5. Then, select "file"> "Export", select "perferences" in the pop-up window, and click "Next ".
6. Select the export file path, export it to the desktop, enter "test" as the file name, and click "save ".
7. Find the file "test. EPF" you just saved on the desktop, right-click and choose "open with Notepad ".
8. You can see a lot of information about configuring myeclipse 6.5.
9. Press the "Ctrl + F" shortcut key, enter ". ABC", and click "find next ".
10. Find the configuration information of ". ABC" as follows:
11. Change ". ABC" to ". abcdefghijklmnopqrstuvwxyz (,". Save and disable "test. EPF ".
12. return to the myeclipse 6.5 page, select "file"> "import", select "perferences" in the pop-up window, click "Next", and select the modified "test. open the EPF file and click Finish ". This step is similar to the preceding export step.
13. Finally, of course, the code is tested. Create a project and a class. Enter switch and foreach in the Code for testing. You will immediately find that there are prompts, and there will be a lot of related prompts no matter which letter you typed, It is smooth and convenient.
Summary:
The "Auto activation triggers for Java" option is the option that triggers the code prompt. "to". abcdefghijklmnopqrstuvwxyz (, "refers to 26 letters and ., (These symbols trigger the code prompt function.
Of course, ". abcdefghijklmnopqrstuvwxyz (," You can also add uppercase letters and other symbols here. You can set and adjust them as needed.
ThisAuto activation delayIs to set the delay time for triggering code prompts.200Yes200 msIs the default value. You can also set it as needed.
By the way, you can modify the class name and interface name highlighted in different colors. You can configure it in "Java"> "enditor"> "syntac ", expand "Java"> "classes" on the right side, check the "enable" option, and select your preferred color. Of course there are other related color configurations. Not to mention it. In fact, in preferences,
In fact, there are many other things that can be configured to optimize myeclipse. Specifically, You need to configure them according to your personal preferences. Thank you.