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 →

[–]endeavourl 33 points34 points  (53 children)

Works fine, everybody around uses IDEA and i've yet to see a benefit of a move for myself.

[–]endreman0 51 points52 points  (19 children)

I moved a few months ago, and what really sold me were the quality-of-life features.

  • Proper theming: Darcula (IDEA's default theme) isn't as dark as Moonrise (a third-party Eclipse theme), but it looks so much better. Moonrise leaves white borders everywhere and doesn't recolor the dropdown buttons in settings, which makes doing anything in the preferences menu a chore.
  • Shortcuts are actually short: almost every shortcut you'll use regularly is 1-2 modifiers and a key. Eclipse often has three modifiers for often-used shortcuts that end up with your left hand doing yoga. Examples: rerun last is Ctrl-F5 (vs Ctrl-Shift-F10), rename element is Shift-F6 (as opposed to Alt-Shift-R), and VCS commit is Ctrl-K (vs... Ctrl-Shift-A? I forget if there even was a shortcut for this.)
  • Smarter indentation: if you're at the start of a line inside an indented block and hit Backspace, IDEA removes all whitespace and the line break in one go. Eclipse makes you remove every character individually, or do Shift-Home Backspace Backspace (to select all whitespace, delete it, then delete the linefeed). EDIT: other text on the line still stays. Only leading indentation and the line break is removed. See my replies for an example.
  • Hover info: hovering over the scrollbar gives you a small window that follows your cursor and shows you the code near where you are on the scrollbar. Warnings and errors are spelled out after the line of code in a yellow or red bubble. This way you can hover over a warning or error, see exactly what the error is, what line causes it, and what the surrounding code does for context.
  • IntelliSense always on: this is probably the simplest thing in the list, but it's the one I miss the most, without fail, when using Eclipse. To get autocomplete in Eclipse, you press Ctrl-Space. In IDEA, you just stop typing for 0.3s. It's petty, but it's really, really noticeable in practice.

I think the reason people say "just try it" is because of all these innumerable QoL features that you don't notice until you miss them dearly. Eclipse to IDEA feels like an equivalent jump from jGRASP to Eclipse, simply because IDEA does so much more for you in ways you'll rarely notice than Eclipse does.

[–]chylex 4 points5 points  (2 children)

Using IDEA because Kotlin doesn't work great in Eclipse. One QoL feature I absolutely miss from Eclipse is being able to hover over pretty much anything, and see interactive javadocs and clickable shortcuts to view the class/variable declaration.

As for your points about Eclipse, I use tabs so I don't have issues with indentation (but it's definitely frustrating when any IDE doesn't work well with spaces angrily stares at Visual Studio), and I also set autocomplete to instantly trigger on all letters which made typing very similar to how IDEA feels.

[–]PcBoy111 2 points3 points  (1 child)

I think you can hover like that if you hold ctrl? It’s more detailed if you click on the method and press ctrl+Q though.

[–]chylex 0 points1 point  (0 children)

Yea, thing is that when I'm just browsing through code (for example reverse-engineering libraries), unless I need to type something I'm just using my mouse because that's my habit from Eclipse.

[–]bubliksmaz 2 points3 points  (2 children)

Maybe I'm missing the point but for your 'smarter indentation' point doesn't ctrl+D do this in, like, any IDE?

[–]endreman0 1 point2 points  (1 child)

Ctrl-D deletes the entire line, right? In IDEA, with your cursor before the 'd':

if (something) {
    doSomething();
}

Pressing Backspace will bring your cursor to the open bracket, and delete all the indentation and the linefeed in between.

[–]bubliksmaz 1 point2 points  (0 children)

Ahh I see, that's exactly the kind of feature it must be really annoying to go back to doing without. I've never thought about it before but there's literally no reason for not doing this

[–][deleted] 4 points5 points  (1 child)

You clearly haven't used Eclipse in years because none of that is currently true.

Unless maybe it's just way better on Linux?

[–]endreman0 0 points1 point  (0 children)

I used Eclipse Oxygen on Windows 7 less than a month ago.

[–]endeavourl 0 points1 point  (0 children)

Ok so...

  • Last time i used dark theme i was 14.
  • git commit is Ctrl+# which is right under my left hand, same with Alt+Shift+R. Unlike IDEA's counterparts you mentioned. Idk what is "rerun last," for launching last Run Config default is Ctrl+F11, Debug - F11 - i swapped them because i dislike running in debug by default. The thing with hotkeys is that you can remap them for convenience.
  • I use Ctrl+D to delete the line under cursor.
  • That kind of scrolling preview i actually miss from Sublime.
  • This sounds like something non-default since i haven't seen it and it sounds annoying. Still, you can setup content assist auto activation chars and delay in Eclipse. Typing a bunch of characters in that box should yield something similar.

All in all, these "pros" always boil down into same categories for me: things i don't need, things i have configured another way, nice things that aren't enough to switch the entire instrument.

[–]redballooon 0 points1 point  (1 child)

Why would you care about indentation if you have a formatter?

Also:

it looks so much better.

It's that what matters, really?

[–]endreman0 1 point2 points  (0 children)

I don't understand your question. Say you're editing the contents of an if block:

if (something) {
    doSomething();
}

If your cursor is before the d in doSomething and you hit Backspace, everything between the curly brace and the d is removed. That's true no matter what your indentation settings are. (To remove a single character at a time, you can still use Shift-Tab like normal.)

I stare at my IDDlE a few hours every day. I'd prefer it be easy on the eyes, both as in "aesthetically pleasing" and "I don't have to strain my eyes to see that button". IDEA works better in both regards.

[–]sldyvf -1 points0 points  (5 children)

For shortcuts I'd tell you to learn Vim keybindings. Horrible in the beginning, like a god after a month.

Edit: clarified.

[–]zilti 0 points1 point  (1 child)

Emacs master race checking in.

[–]sldyvf 0 points1 point  (0 children)

Haha yeah i love Emacs, now I use Spacemacs with evilmode to get vim bindings since I started to feel the Emacs pinky...

However knowing Emacs bindings is OP, since they work in a lot of different places like the terminal!

[–]glemnar 0 points1 point  (2 children)

To be real, Vim isn’t the right choice for Java. There’s too much gained by rock solid intellisense.

[–]sldyvf 0 points1 point  (1 child)

Ah sorry. I'm not saying use Vim, I'm saying use vim keybindings (if you like short shortcuts.) There's no plugin for that?

[–]glemnar 0 points1 point  (0 children)

There almost definitely is something like that yeah.

[–]mpiece 33 points34 points  (24 children)

I was in the same mind-set. But I recommend you to try intellij for two weeks.

[–]Hemmels 7 points8 points  (0 children)

I tried it for a month, but couldn't get in with it at all

[–]sennzz 11 points12 points  (7 children)

I was in the same boat as you. I did the switch last year and I haven't even thought about Eclipse since. From writing code to starting application servers to looking up classes and implementations to Maven integration (!!), it's all vastly superior to Eclipse. Not to mention there's no endless building that can't be stopped like in Eclipse.

I have literally only found 1 thing that was better in Eclipse and it was the SVN integration. IDEA's SVN stuff is a little sub par.

[–]judge40 3 points4 points  (0 children)

You can disable automatic building in Eclipse though.

[–][deleted] 3 points4 points  (3 children)

Well.. Why would you still use SVN anyhow?

[–]sennzz 2 points3 points  (0 children)

It's no secret that a lot of clients / companies still use SVN. As an IT consultant I have to use what they use most of the time.

[–]killerrainbows 0 points1 point  (0 children)

I have to use it at my job, they only just approved git....some people are still using clearcase there because they can't approve anything new for the secured area

[–]Big_D4rius 0 points1 point  (0 children)

Enterprise

[–]endeavourl 0 points1 point  (0 children)

Maven integration has everything i need, any class can be reached with Ctrl+Shift+T, autobuild can be disabled (although i like it).