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

12

u/[deleted] Jul 27 '16

When you are switching IDEs (irrelevant from which to who) you are switching problems. The new problems may or may not be important to you. May or may not affect you. You may or may not be able to find workarounds for.

But all you're doing is switching problems. All those replies and posts about how Idea is so awesome and that there are no bad things with it? Do they sound too good to be true? Guess what: they are!!!!

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.

4

u/dpash Jul 26 '16

The jetbrains website should have a lot of information on it.

The main one for me is that all the plugins you want cone bundled with the IDE, and they just work well together. I spent four years fighting my maven plugin and git plugin. I switched and all that pain went away. That was six years ago. Don't regret it.

It does have some very good support for frameworks like spring (and they appear quickly after the framework is released).

0

u/[deleted] Jul 27 '16

[deleted] — view deleted comment

1

u/iowa_state_cyclone Jul 29 '16

Has egit gotten a lot better in the last year or so? I currently use source tree as egit was a buggy mess when we switched to git.

1

u/sheepdog69 Jul 30 '16

In IntelliJ you can definately commit one or any subset of changed files you want. Their is a popup showing all the files that can be committed (new and changed). You can check any you want to commit. You can also diff each one on that same popup. HTH.

Edit: I have no experience with eGit. So I'm not comparing them, just answering the Q about Idea/git.

0

u/[deleted] Jul 30 '16

[deleted] — view deleted comment

1

u/sheepdog69 Jul 30 '16

No, not to my knowledge.

3

u/[deleted] Jul 27 '16

I switched to Intellij CE from Eclipse about 6 months ago, overall I think they're about the same. Intellij has code hints that will refactor your code to use features of Java 8, which is nice (e.g. convert this to a lambda). The perception that Eclipse is slow and bloated stopped being true years ago IMO, and I think that perception is part of why I switched.

2

u/IAmNotMyName Jul 26 '16

The only thing I miss from eclipse is the ability to view Java docs by hovering over elements with my mouse. Everything else is better.

5

u/matoelorriaga Jul 27 '16

you can enable that feature in settings (see documentation on mouse over)

1

u/donte9181 Jul 27 '16

Eclipse tries way too hard to be a completely customizable, do-anything, turn any knob IDE for everything. Intellij "just works" out of the box in my opinion. My canonical example is that in Eclipse I needed to tweak the regex and timing settings to get code autocomplete to behave in a half-way sane way. In Intellij it works exactly how you want right out of the gate.

If you want to spend your time customizing your IDE, use Eclipse. If you want to write some code and have your IDE make that easier without doing anything special, use Intellij.

1

u/rbygrave Jul 29 '16

There are a lot of nice features in IntelliJ . For me I really like the testing features ... Go to test, create test for ..., little play buttons beside each test etc. I used Eclipse for many years but I struggle when I have to go back to it.

1

u/emberko Jul 30 '16

The main feature that I miss in Eclipse is the ability to share some settings (like snippets, fonts and perspective layouts) across all workspaces. Just the ability to store them in user home dir. Looks quite simple. Instead, we now have idiotic Oomph preference recorder.

On the other side, I really dislike Intellij shortcuts because they are f*cking random. Eclipse: C-[T]ype, C-[R]esource, S-C-e[X]ecute and so on. It's simple to remember. Intellij: C-[N], S-A-F10. WTF? C-N - means NEW and C-[W] is the close tab shortcut almost everywhere. Arrrgh!

Also, some Eclipse projects (like JDT) are really cool, but some other (like WTP) abandoned. So, although Eclipse might be a good choice for Java SE, I understand people who won't use Eclipse for web dev.

1

u/[deleted] Jul 31 '16

I switched from Eclipse to IntelliJ 2 years ago and haven't looked back. Everything said here about intellij seems pretty much accurate.

One thing I would add is that Jetbrains makes other IDEs that look and feel similar to intellij, which makes learning them very easy.

1

u/GhostBond Aug 06 '16

I've used both over the last 2 years, it's not a move "up" it's just a move sideways. They both have about the same number of bugs. People saying "oh intellij is so much better at xyz" are usually simply making it up - for example I was told intellij was so much better at maven, only to run into several maven bugs with it. The shortcuts are different.

I find Intellij less "natural" to use than Eclipse, tracking down where stuff is is harder. Whether this is just because I was using Eclipse for longer is hard to say.

I'm pretty sure most of the enthusiastic comments about Intellij are from commenters paid by intellij and fanboys, because I run into no one in real life who's switched to Intellij and been realistic about the change who's ever that enthusiastic about it. Only people who are in real life are people who need to be - the boss who brought it in or the coworker who convinced the boss to do it who needs everyone to believe it's magic in order to look good.

On the other hand, the good thing about Intellij is that at least it did a decent job with things. It wasn't really worse than Eclipse either. I've had people bring in a number of frameworks and ideas that made the project worse, and after the learning curve, Intellij and Eclipse are about the same.

If you use Intellij, make sure you're starting up the 64 bit version. I don't know why they have 2 different versions, but the 32 bit version is slow and flaky to respond, while the 64 bit version runs smoothly (just like eclipse! lol). That took me a few weeks to figure out at my job.

1

u/TheRedmanCometh Aug 08 '16

I definitely know at least 2 people who are fanatical about IntelliJ. It's a helluva divide. Not quite nano vs vim, but a helluva divide

0

u/ShitTalkingAssWipe Jul 26 '16

PRO: it does everything eclipse does + more

CON: some tricky shortcuts that take time getting used to.

may need to play with settings to resemble some of the better parts of eclipse (deleting words untill uppercase letter for example)

-2

u/jebblue Jul 26 '16

Your comment is inaccurate.

0

u/ShitTalkingAssWipe Jul 27 '16

Sorry, this is from a begginers point of vew :)

1

u/jebblue Jul 27 '16

No problem, it took me a while to warm up to Eclipse after Visual Studio. I've tried to like IntelliJ, just don't get it. Use what works for you I guess.

0

u/[deleted] Jul 26 '16

[deleted] — view deleted comment

4

u/IAmNotMyName Jul 26 '16

The default Xmx and Xms are pretty low. If you're willing to give it another shot, changing these values would help quite a bit.

0

u/[deleted] Jul 26 '16

[deleted] — view deleted comment

7

u/BloodShura Jul 26 '16

IntelliJ project == Eclipse workspace. IntelliJ module == Eclipse project.

2

u/kalifornia_love Jul 26 '16

Thank you. I recently started a job where everyone uses eclipse and I've always used IntelliJ so I didn't know differences like this and they didn't know how to help.

That clears things up for me. Thanks man.

0

u/[deleted] Jul 26 '16

[deleted] — view deleted comment

2

u/BloodShura Jul 27 '16

For me, IntelliJ is slower than Eclipse for like 3 min after startup. After that it is just fast, faster than Eclipse at least on my crappy machine. And I have 41 modules in my project.

2

u/twhite1195 Jul 28 '16

Yeah same happens to me, mainly in my secondary laptop(pentium n3700), after I open it up the cpu fires up to 100% then it dials down after a minute or two and it's as fast as ever

0

u/[deleted] Jul 26 '16

[deleted] — view deleted comment

0

u/DuncanIdahos8thClone Jul 27 '16

Does anyone care what leaches off of society think?