Set up Eclipse Smart Tips

Source: Internet
Author: User

Original address: http://blog.csdn.net/sz_bdqn/article/details/4956162

A bit of time today to study the myeclispse of the intelligent perception of the function. When I first started using it, I always felt so uncomfortable. → IntelliSense is too weak! and visual Studio2008 is simply not a grade! But later, after looking at the information on the Internet, I found that it was not so weak, just last week when I played with it I found that I could modify its IntelliSense cue time by setting the following:

Windows→preferences→java→editor→content Assist

We see that the default value of Autoactivation delay is 200 (in milliseconds) which means "." Then stay 200 milliseconds before IntelliSense prompts appear. So what happens when you change it to 20? Try to change to 20 after the prompt speed significantly increased, can be achieved with the times ...:)

OK, the prompt time was last modified. This time it modifies its trigger for IntelliSense. That is, to make it a powerful perceptual function like our visual Studio2008, that input s can prompt for all of the features that start with the S keyword. Quite simply, the option auto Activation triggers for Java value, will be the original trigger "." Modify to "." + 26x2 Letters. Well? Why the 26x2? Because the letter score case, uppercase 26, lowercase 26, of course, 26x2!

Here's how:

Navigate to: Windows→preferences→java→editor→content Assist

Then modify: Auto Activation triggers for Java default value "." To ". ABC". Then file→export→preferences→ export to a file (assuming TEST.EPF), then open test.epf with Notepad, search for ". ABC" and change it to ". ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVW ", save.

Then File→import→preferences→test.epf,ok, then write the Java program.

You can try it yourself, but first look at my effect as well:

Input SYS IntelliSense:

We know that in VS, the code block of try is entered in try, then two tab key, then this function can also be implemented at this time:

Click "Enter" to see the following code block:

What do you think? Is practicality very strong? I believe it can make your development more efficient several times.

In fact, the above try {}catch{} code block we can also set ourselves. Here does not elaborate, has the interest to be able to grope for oneself.

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.