(EXT) Eclipse Code Auto-Complete

Source: Internet
Author: User

Transferred from: http://blog.csdn.net/yushuwai2010/article/details/11856129

By default, Eclipse's code hinting feature is much worse than Microsoftvisualstudio, primarily because eclipse itself has many options that are turned off by default, and are manually configured by the developer themselves. If the developer is not sure, it is not known that the Code hints feature of Eclipse is as powerful as the Microsoftvisualstudio code hints.

Let's start with a simple example to illustrate the problem, such as in Eclipse, code, Foreach,switch and so on, is unable to get the code hint, the other is not to mention, and in Microsoftvisualstudio is very friendly code hints. In fact, the code hinting feature in the Eclipse code is usually the point ".", which is usually a point "." Code hints will be available.

Enhance the code hinting feature of Eclipse, how to configure it specifically? Let's start with the steps:

1. Open eclipse, 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. 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 a lot of things that can be configured, so that Eclipse optimization, specific to each person according to their own personal preferences to configure

(EXT) Eclipse Code Auto-Complete

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.