Enhanced the code auto-Prompt function of myeclipse

Source: Internet
Author: User
Enhanced the code auto-Prompt function of myeclipse By default Code The prompt function is much worse than Microsoft Visual Studio, mainly in eclipse. myeclipse has many options which are disabled by default and must be manually configured 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, 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: "auto activation triggers Java "This 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. How can I configure it?
The procedure is as follows:

1. Open myeclipse, and then "window" → "Preferences"

2. Select "Java", expand, "Editor", and select "content assist ".

3. Select "content assist" and then 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 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.

9. Press the "Ctrl + F" shortcut key, enter ". ABC", and click "find next ".

10. Find the configuration information of ". ABC.

11. Change ". ABC" to ". abcdefghijklmnopqrstuvwxyz (, <", save, and disable "test. EPF ".

12. return to the myeclipse interface, select "file"> "import", select "perferences" in the pop-up window, click "Next", and select the "test. open the EPF file and click Finish ". This step is similar to the preceding export step.

13. The final part is code.Test.
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 the code prompt. "to". abcdefghijklmnopqrstuvwxyz (, "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 factRences ", there are many things that can be configured, so that myeclipse is optimized. Specifically, each individual needs to configure according to their personal preferences.

 

Reprinted from: http://www.cnblogs.com/netshuai/archive/2009/08/04/1538429.html

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.