Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Things possible in Eclipse that aren’t possible in IntelliJ? [closed]

I have heard from people who swear by one or the other. Both are full-featured, excellent IDEs. But each has slightly different strengths. This is not meant to turn into a holy IDE war. Please downvote any flamebait answers. Thanks.

This is the analog of this question.

like image 860
Craig P. Motlin Avatar asked Jan 20 '09 13:01

Craig P. Motlin


People also ask

How is Eclipse different from IntelliJ?

The main difference between Eclipse and IntelliJ lies in their intended use. While IntelliJ is a Java IDE for professionals and students, Eclipse focuses on open-source development with its wide range of optimized IDEs. Compared to IntelliJ IDEA, Eclipse comes in 40+ languages.

What makes IntelliJ better than Eclipse?

IntelliJ is much easier to use as compared to Eclipse. The learning curve is far faster in IntelliJ, which makes developing easier and more natural. Code completion, Dropdowns, quick view, project wizards, etc. are all possible in both Eclipse and IntelliJ, but the user experience in IntelliJ is much more satisfying.

Can Eclipse and IntelliJ work together?

You can import either an Eclipse workspace or a single Eclipse project. To do this, click Open on the Welcome Screen or select File | Open in the main menu. IntelliJ IDEA automatically detects Eclipse projects located on your computer and places them in the dedicated node right on the Welcome screen.

Can I open IntelliJ project in Eclipse?

From the main menu, select File | Export | Project to Eclipse…. The Export to Eclipse dialog displays the list of modules that have not been converted and switched to use the Eclipse format yet (the modules that have the IntelliJ IDEA module format . iml). Select the modules you want to export.


2 Answers

My favourite small annoyance in IDEA (and favourite small feature in Eclipse) is the positioning of the character when typing an opening curly brace (e.g. "{") or a semicolon. You'll have to enable it in Eclipse (Window/Preferences/Java/Editor/Typing: "Automatically insert at correct position: Semicolon, Braces")

With this just type ahead ("|" is the caret position)

while(| 

results (no magic yet) in

while(|) 

now type true{, results in

while(true) {| 

So simple, yet so powerful.

Also, in (e.g.)

System.out.println("Hello world") 

with the caret anywhere in that line, typing a semicolon will automagically type it at the end of the line. Backspace corrects, just like the usual autocorrection in your favourite wordprocessor.

Priceless. I'm physically no longer able to type a semicolon at the correct position on first try :)

like image 111
Olaf Kock Avatar answered Oct 13 '22 23:10

Olaf Kock


Eclipse's incremental compiler lets you run unit tests even while there are compiler errors in unrelated code. IntelliJ relies on javac which doesn't emit bytecode unless all the code is valid.

like image 30
Craig P. Motlin Avatar answered Oct 13 '22 22:10

Craig P. Motlin