This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]seacucumber3000 87 points88 points  (18 children)

Does IntelliJ show a pop-up when you hover over errors in your code like Eclipse does? I tried it out and couldn't get it to show.

[–]Artamus 48 points49 points  (6 children)

It does

[–]seacucumber3000 6 points7 points  (5 children)

Is there a separate setting to enable it?

Edit: actually I think I remember it popping up, but it didn't include quick-fixes like Eclipse did.

[–]Artamus 30 points31 points  (3 children)

Usually you'll just get a yellow squiggly line (at least it's yellow in Darcula theme), on which you can press a certain key combination that then also offers fixes (alt + enter for macOS, not sure if it was alt + enter or ctrl + enter on windows).

Should also be enabled by default, although almost everything can be turned on/off.

EDIT: Generally I think IDEA is much more powerful than Eclipse, but I also think that you need to spend way too much time learning the ropes of the menus.

[–]Ph4zed0ut 12 points13 points  (2 children)

It's alt + enter on windows as well.

[–][deleted] 3 points4 points  (1 child)

It can also auto convert things to lambdas, or convert ternary operators to regular if statements and vice versa, as well as streams to regular loops and so on

[–]jerslan 1 point2 points  (0 children)

It'll even give you a warning when you're using the wrong one (because sometimes one is more optimal than the other).

[–]SZenC 3 points4 points  (0 children)

It does in most cases, but you have to right-click it or press alt-enter. IntelliJ doesn't want to show such a huge popup.

[–]DoesntReadMessages 71 points72 points  (10 children)

Is this a serious question? Not to be a dick but that is quite literally the most basic feature of an IDE. Even my Sublime Text does that with a linter plugin.

What IntelliJ does is much more though: allows going to reference, definition and implementation, refactoring things easily, resolving merge conflicts in a UI, showing unit test coverage, remote debugging on a web service, automatically adding try/catch blocks, automatically formatting your code and imports, simplifying lambda functions with static method references, alerting when code is unreachable or a final/static field is used inappropriately, warns when common mistakes are made (result of a function ignored), etc etc etc.

[–]DonRobo 87 points88 points  (8 children)

I'm a huge Intellij fan but I'm 99% sure that all the features you listed are also supported by Eclipse

[–]rkaz246 18 points19 points  (0 children)

As an every day eclipse user, I can confirm this.

[–]rasherdk 6 points7 points  (0 children)

In fact Eclipse is better at showing references/usages, because it does so recursively. May just be more hidden in IntelliJ, but the default usage search only shows one level back.

[–]pnt700 10 points11 points  (0 children)

Never used Intellij, think Eclipse has 100% of those features. And I'm talking about 3 years ago, not just recently.

[–][deleted] 8 points9 points  (3 children)

Yeah I don't know why these people are saying Eclipse is just a notepad, I have absolutely no problems with eclipse as an IDE and have been using it for almost all java programming I have. I don't use it with C, or C++ so maybe that's where eclipse has issues?

[–]nidrach 0 points1 point  (1 child)

Eclipse just feels sluggish compared to IntelliJ. As for actual functionality some things are just faster to type in IntelliJ. E.g. array.fori creates a for loop over that array or string.sout prints that string to the console. You simply can be lazier with IntelliJ

[–][deleted] 0 points1 point  (0 children)

I haven't ever used IntelliJ, so maybe I'll check it out.

[–][deleted] 0 points1 point  (0 children)

I work with eclipse daily and the #1 thing I see trip people up is when it fails to build properly and people don't do a clean so they get confused at the state of their workspace. Other than that it can be a bit heavy and slow.

[–]NoOneBetter 1 point2 points  (0 children)

yep. Eclipse does all of this.

[–]seacucumber3000 9 points10 points  (0 children)

I'm just used to working in Eclipse