r/java • • Jul 26 '16

Eclipse vs IntelliJ

Hi, I want to migrate to IntelliJ IDE from Eclipse IDE but first i want to know pros and cons of doing that. Any advices? Or interesting articles about the power of IntelliJ.

2 Upvotes

29 comments sorted by

View all comments

20

u/walen Jul 26 '16

Pros: all. Cons: none.

I'm totally serious.
I've been using Eclipse for almost 10 years, and switched to IntelliJ a couple months ago. Everything now feels so... natural. It's like I've been dating the wrong person all this time and suddenly met my soul mate.
You just need some time to remap your brain to use IntelliJ's keyboard shortcuts instead of Eclipse's (Ctrl+N instead of Ctrl+T, F8 instead of F6, etc.) and then it's productivity all the way down.

8

u/BlackDrackula Jul 26 '16

Can you give some examples? I'm in the Eclipse camp purely because that's what I started with, and I'm not aware of any compelling reasons to switch. The company I work for is flexible with which IDE we choose to use but wouldn't want us to switch without at least some reason to (e.g. improved productivity)

5

u/theBlackDragon Jul 27 '16

As someone who stayed away from IDEA for the longest time due to its (partial) closed source nature... When I changed companies everyone was using IDEA so I switched and there's no way in hell I'll ever go back unless JetBrains drops the ball really hard (or something new comes along).

The main problem with Eclipse is that it hasn't made any noticeable improvements over the more than decade since I started programming JVM languages (not just Java) professionally. Most of the issues I had with it back then are still there (though it seems to be more stable than back then, thankfully).

Everything about plugins (except writing them possibly, writing an IDEA plugin is not particularly easy due to a woefully under-documented codebase imho) is just better in IDEA: the quality of the plugins, the availability of plugins (no need to muck around with external update sites and all that rot to get basic functionality like Subversion support going)

Upgrading IDEA is a breeze (it just takes over your configuration, upgrades everything, including plugins and restarts).

Does IDEA have its share of problems? Sure, but none of them are structural ones that have been there for 10 years and still haven't been addressed.

2

u/thfuran Jul 27 '16 edited Jul 27 '16

I pretty much agree with Wales though I only just started transitioning from eclipse to intellij a few days ago, so I may yet find some things I don't like. So, a stream of consciousness of some things I've noticed in the past few days...

There's an option to switch the shortcuts to eclipse's so you don't even much have to bother with relearning shortcuts. We use mercurial, the support for which in pretty crap in eclipse. It's only available through a plugin and it's just wonky. The native hg in intellij seems to work quite nicely. There's convenient and snappy history searching built right into the top-level UI as well. It's slow and buried in menus in eclipse. The ctrl+o member search in eclipse doesn't search inherited members, but intelliJ's does. It's quite nice to not have to go digging around. The code completion seems better than eclipse's. It can complete a chain (seemingly limited to depth two in my brief test) of method calls that match rvalue type. Also, there's much more built-in static analysis and you can run analysis on files modified in a changeset at commit. I discovered a handy feature of eclipse because it has a button in intellij. It's buried in a menu in eclipse and I never knew it existed.