Why give up eclipse, choose IntelliJ Idea, read finally understand

Source: Internet
Author: User

If you're using idea for the first time, it's going to be a lot of money to spend it without a purpose. In the sincerity of the table,

On an idea teaching video to table my sincerity. (: Https://pan.baidu.com/s/1gfeX3hD)

When you persist in using idea for a week, you will really love it, even if the first few days are painful to boil over, in the end you will also really understand why I will let you choose it!!! and see below!!


1 Love-hate, but hard to break eclipse

This is really a very difficult decision, I will start with Eclipse in the university, a blink of an eye for 10 years, basic eclipse I may use the shortcut keys I can be subconsciously to press out. Remember the first time to use, surprised to find that the interface is beautiful, powerful, running smoothly in one of the IDE, the feeling is a dream-like existence. In particular, the eclipse (eclipses) and sun, the name of the relationship, think all laughing.

A few years ago a friend recommended a trial IntelliJ, the first response is commonly used shortcut keys are not found, changed to eclipse adaptation shortcut keys There are a lot of common different. It didn't last long before he gave up.

But Eclipse is so many years have let me love hate the IDE, a little more complex framework will appear n multi-incompatible situation, but eventually prompted me to find a better use of the IDE is sometimes really do not know why the same configuration in different machines will not necessarily take effect. I don't want to spend dozens of minutes each time I configure a machine for my colleagues, and it will only be a chance success.

In fact, in commonly used development, eclipse is really the easiest to learn to get started. But the code-level design of Eclipse is really not good enough, so that the new version after the release and the old version of the plugin can actually have compatibility issues. If you are not bothered by the eclipse problem, you can still use it completely. Unless you read the following, the idea has changed ...

2 Let's develop more efficient IntelliJ idea

After one months of use, he was gradually found to be powerful, and all the machines were configured with a configuration manual, without exception. I can finally just throw a document to the new employee to do their own, save a lot of time to drink tea to write a blog.

2.1 Better way to manage projects

2.1.1 Project & Modules

Just switched over the original was quite confused, has been heard that only one project can be opened at a time, and my side of the project are divided into modular, need more than 10 engineering combination in order to work properly. Later found that project here is similar to workspace in Eclipse, and module is similar to project in Eclipse. This is not just a simple name change, IntelliJ project is really a project, there is a unified global Library, but also the right interdependence, the original for the convenience of the development of the module integrated together for management. awesome!

2.1.2 Super-Easy git project management

If you do not understand the previous one, here is one of the most intuitive examples, is that so many projects each is a separate Git project (because different projects will have different permissions), the completion of a function will have n need to submit the module. There are always things that forget to commit a module, but now updates and commits are all modules under this project. The rush to this, you have to change it, do not know how much time to save.

2.2 Farewell to the configuration that is always inconsistent with expectations

2.2.1 Not the same but clearer settings directory

It is the IDE configuration that can be found here in Settings, and the project configuration is also in Project settings. The few directory hierarchies are clear, but now it's strange why Eclipse's configuration directory looks so faint.

2.2.2 Say goodbye always can't change the tab

In eclipse, it's really exhausting, configuring N to change the tab to 4 spaces, but you'll find that there's always a place or not. But IntelliJ will be exactly what you configured, and the default is 4 spaces, only SQL defaults to 2.

2.2.3 The default dark theme

Finally can quickly change the entire interface to cool dark, but I finally went to the internet to get a better color sense, compatibility is also very good. Eclipse can only turn the window that writes the code into a dark color, and often has a bug that displays colors ...

2.3 Higher development efficiency

Automatic generation of 2.3.1 code and zencoding support

In fact, this eclipse also has, but does not have his intelligence. For example, it can generate a class of test classes, and can be correctly placed in the corresponding directory test.

In addition, zencoding support is very good, writing HTML is very convenient, tab is fast completion, and the same as the native integration.

2.3.2 better support for JS, CSS, and plugins

In Eclipse, the basic support for these two is not able to look straight, because I write less web, so endure until now. Other colleagues use other Ides to write the Web and start Web server with Eclipse. This is the only one you can use now.

2.3.3 Better Commissioning

To this point, it can only be said that the bunker, dumped eclipse a few streets.

Run the line, you can immediately prompt the relevant values in the Code interface, and do not have a debug interface jump to jump, but also in the IDE debugging JS, code and Interface automatic refresh synchronization and so on. I don't know why I've changed the code in eclipse sometimes, sometimes it's hot, sometimes it's just restarting the server, and there's no manual reboot ...

2.3.4 Shortcut keys

There are more and better use of the shortcut keys, there are a lot of useful new features, to turn over their own ~

3 IntelliJ's Pit

This IDE is not all good, and during the first week of the trial evaluation stage, it was a pile of pits. Have to spit on the groove!

MAVEN's functional integration is generally: compared with Eclipse's management interface, especially the new configuration can only modify the XML, see dependencies need to another interface.

Annoying multi-level catalogs: If you use Maven, you'll find that in project mode, you need to open the Src/main/java three-tier directory one at a to see the Java files, why not open them together. If you use package mode, you will find that in addition to the files in the classpath, you can see nothing, including your webcontent, and open a Web view.

Ultra-Small default memory, memory overflow crashes do not prompt: the same as eclipse to start the memory to modify the configuration file, but crashed on the direct interface disappears, find a lap to find the JRE has a crash log, found that the memory is not enough, and finally added to 1.5G to stable operation.

The Community edition is too weak, and the commercial version is not cheap: unless you write only the most basic Java code, the Web development and so on really no commercial version, the IDE is not very useful.

git push: I really do not know why not put in the alt+~ menu or the upper right corner vcs control, hidden so deep, can only use Ctrl+shift+k to open the interface.

Console multiple and decentralized: this is not bad, it put the different output in the unused console, very clear, but just start to use, you will find that you are not sure where to output, where you can see. Can only say that the cost of learning a little higher.

Tool buttons Default does not open: this why not open, although there is an icon in the lower left corner can be opened, but you are sure that the first time you use to see these buttion, users can find the appropriate place?!

4 Summary

If you're just looking for an IDE to learn Java, Eclipse will quickly get you into shape.

If you are looking for an IDE that can improve your development efficiency, then IntelliJ is worth trying.

Finally say, Java itself is let people love and hate, out of the IDE, this language or let people use it?!

Again with this idea video tutorial let you less detours, so that you spend less time:
(: Https://pan.baidu.com/s/1gfeX3hD)

Why give up eclipse, choose IntelliJ Idea, read finally understand

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.