MyEclipse Auto complement and shortcut key settings

Source: Internet
Author: User

By default, Eclipse, MyEclipse's Code hints feature is much worse than Microsoft Visual Studio, primarily Eclipse, myeclipse itself has many options that are turned off by default, to be manually configured by the developer himself. 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.

Let's take a simple example to illustrate the problem, for example, by default, in Eclipse, MyEclipse code, playing a foreach,switch and so on, is not able to get code hints (do not trust themselves to try), the others, not to mention, but in the Microsoft In 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: 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.) Specific later said, rest assured)

Enhanced Eclipse, MyEclipse 6.5 code hints feature, specifically how to configure? The following steps (note I use the MyEclipse 6.5 to explain, the other, the principle is the same):

1. Open MyEclipse 6.5, then "window" → "Preferences".

2. Select "Java", expand, "Editor", and select "Content Assist".

3. 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.

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.5 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.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.

Summarize:

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.) )

Of course, ". ABCDEFGHIJKLMNOPQRSTUVWXYZ (," Here can also add capital letters and some other symbols, specific, self-setting and adjusting yourself as needed.) This auto activation delay is the time to set the delay for triggering the code hint. 200 refers to 200ms, is the default value, you can also set as needed.

By the way, modify the class name, interface name, etc. in different colors highlighted, can be configured in the "Java" → "editor" → "Syntac", the right to expand "Java" → "classes", tick "Enable" this option, choose their favorite color. There are, of course, other related color configurations.

MyEclipse shortcut key problem eclipse3.3 in the Content Assistant (contents assist) shortcut keys from Al/changed to CTRL space, which is exactly the same as our operating system switching keyboard shortcut keys conflict, so that the Content Assistant can not be used, Has brought great inconvenience to the writing of the Code. Just before the Alt/accelerator in Eclipse 3.2 was used as the shortcut key for the new word competion feature. So now imagine the same as before. Using Alt/To implement the function of the content assistant, you need to change the settings of the eclipse3.3 shortcut key. The operation is as follows: 1. Click windows->preferences->general->keys. 2. In the list of shortcut keys to find: Word competion, its shortcut key alt/Change to another shortcut (how to change, first remove this shortcut, click the button to the right of the "remove binding", and then select the Binding text box, enter the shortcut you want). 3. Find in the list of shortcut keys: Content Assist, change its shortcut ctrl space to the ALT/OK we want.

MYECLIPSE8.5 Registration code to 2015

Subscriber:towchen

Subscription code:glr8zc-855550-60677256841054048

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.