Enhance the code auto-Prompt function of eclipse and myeclipse
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 the developer is not clear about eclipse, the code prompt function of myeclipse is similar to that of Microsoft Visual Studio.
As powerful as the display function.
Let's give a simple example to illustrate the question. For example, in eclipse and myeclipse code, you cannot get code prompts by playing foreach or switch ), let alone others, and 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 refers to the option that triggers code prompts and changes "." To ". abcdefghijklmnopqrstuvwx ".YZ (, "refers to 26 letters and. (These symbols trigger the code prompt function. (You can rest assured later.) How can I configure the code prompting function of eclipse and myeclipse? The following describes the procedure (note that myeclipse 6.0.1 is used for my explanation ):
1. Open myeclipse 6.0.1, and then "window" → "Preferences"
2. Select "Java", expand, "Editor", and select "content assist ".
3. Select "content assist" and then see the "autoactivation 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. 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.0.1.
9. Press the "Ctrl + F" shortcut key, enter ". ABC", and click "find next ".
10. Find the configuration information of ". ABC.
11. Change ". ABC" to ". abcdefghijklmnopqrstuvwx ".YZ (, ", save, and disable" test. EPF ".
12. return to the myeclipse 6.0.1 interface, "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.
Conclusion: The "auto activation triggers for Java" option refers to the option that triggers code prompts and changes "." To ". abcdefghijklmnopqrstuvwx ".YZ (, "refers to 26 letters and. (These symbols trigger code prompts. 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, there are many configurable preferences.
Things, so that myeclipse is optimized. Specifically, individual needs to configure according to their personal preferences.
6.5 Alt +/does not work Solution
Myeclipse5.5 I used for system. Out. println (); this is syso and then Alt +/will show system. Out. println ();, myeclipse6.5 without any prompt
Solution: select window-preferences --> General --> keys in the menu bar of myeclipse6.5:
1. Change the content assist shortcut key from Ctrl + space to Alt + /.
2. Set the word completion shortcut key from Alt +/to another non-conflicting shortcut key.
3. Click OK.