Idea prompts java api information similar to the eclipse mouse, eclipseapi

Source: Internet
Author: User

Idea prompts java api information similar to the eclipse mouse, eclipseapi

How to make java code APIs appear in eclipse

I don't know if you are using the Chinese or English version.
I use the English version:
Click Window, find Preferences in the drop-down list, and click

Add API Baselines
Find the corresponding API files in the pop-up file selection box (provided that you have downloaded these files)




Why is IDEA better than Eclipse?

One of them is the choice of Java IDE: There are a lot of arguments about which of them has more plug-ins, shortcuts, and so on. There are too many differences between them, and it is difficult to decide what is the most important. Therefore, it is said that the two ides are similar in functionality, and selecting one is a matter of personal preferences. I think this is not just a matter of personal preferences. The objective reason is that Intellij IDEA is definitely better than Eclipse. I won't compare the differences between the two in many ways, such as plug-ins and shortcut keys. Because there are a series of blogs about this, such as [part 1] [part 2] [part 3]. I will show the biggest difference between IDEA and Eclipse. Generally, fans of IDEA and Eclipse do not know about it. The former is used to use it rather than imagining how IDE lacks it. The latter is not used to it and it is hard to imagine that IDE can do so well. Eclipse users usually do not realize this difference when playing IDEA, because they are used to working in Eclipse mode. Why am I so confident? Before you begin, let me explain who I am and why my point is worth hearing. I have been using Eclipse for five years. I know it very well. I write plug-ins for it and really love it. Then, I changed my job to a company and was forced to transfer it to IDEA for development. After this "Break up", I finally realized why IDEA is more acute. Now I have been using IDEA for some years, so I can compare them because I know them. The main difference between IDEA and Eclipse is that IDEA understands the context. This is why the JetBrains employee named IDEA intelligent. What does it really mean? IDEA retrieves your entire project, analyzes all the content of the project, and even constructs a syntax tree. Thanks to it, IDEA knows where you are and what you can do wherever you place your mouse. Still not running? Don't worry. After listing the following examples, everything is clear. This understanding of context is manifested in many ways. The following is only a part of it. 1. debugging usually requires some expression values during debugging. In Eclipse, You need to select this expression. It is very important to select the entire expression. Otherwise, you cannot find its value. Then, you can use Ctrl + Shift + I to view the value of this expression. You don't need to select anything when using IDEA. You just need to move the cursor to your expression and then press Alt + F8. IDEA will understand the expression you may need and display a dialog window with some suggested parameter variables. You can also edit and neutral in the dialog box to obtain the value of this expression. Very convenient! After you have tried this feature, you will no longer want to debug it in Eclipse. Basically, you can do the same thing on both ides, but using IDEA is simpler and faster. I seriously said that the difference is too big: just like heaven and earth. In a small IDEA dialog window, Automatic completion, syntax highlighting, and everything you need are provided. 2. Automatic completion makes the IDE better than notepad, and the IDEA that can perceive the context in this field has made a qualitative leap. For example, we start the following line of code: assertElement (By. id ("errorMessage"). vi now we want to find the options starting with vi. How does IDEA do it? Without waiting for any buttons, it can understand assertElement immediately requires an example of the Conditaion class as the second parameter, and there is a static variable named visible in the Condition class. IDEA directly recommends this unique valid option. However, what does Eclipse do? Alas, it cannot understand the context, and it does not know where the cursor is located is the second parameter of the assertElement method. Therefore, when you press Ctrl + Space of the "holy", Eclipse will simply display the rest of the full text in the global...>

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.