IntelliJ IDEA 11 is Out
blogs.jetbrains.com
blogs.jetbrains.com
I am very verbose commenter for both other people coming behind me (in closed or open source software[1]) as well as myself a year down the road going back through thick code and needing to get back up to speed on it.
Because of this I frequently use HTML formatting in my Javadoc (lists, code snippets, etc.) and find Eclipse's Javadoc formatter more or less perfect.
It breaks lines exactly like I want it to, leaves blank lines entact where I want it to, etc.
I've attempted to file bugs for IntelliJ over the years to refine their Javadoc formatter and they have been fixed, but it still misses the boat on complex single, multi-line or Javadoc comments that requires hand-editing.
I know it's silly, I just can't get over that.
I also find the module/web/deployment/artifact model untenable; but even that I could get around if I had an effective formatter. (FWIW the Eclipse/WTP model is just as stupid when it comes to J2EE project modeling, so no one wins that battle)
[1] http://www.thebuzzmedia.com/downloads/software/imgscalr/java...
However submitting bugs and feature requests with examples would be better. Many reports are fixed quite quickly. I did not manage to find the bugs you filed though: http://youtrack.jetbrains.net/issues?q=%23rkalla
I can't find older bugs, but the most recent one was this one: http://youtrack.jetbrains.net/issue/IDEA-28895?query=voted+b...
I don't know what happened between the report and the fix in 10.x, but I didn't notice changed behavior. The formatter still didn't wrap correctly for me and indent.
For example, take this:
/* This is a really long line */
and turn it into: /*
* This is a really
* long line.
*/
IIRC what it did was break the line but not prefix it with star, or it prefixed it but put no space between star and the chars... something like that.It also didn't handle longer // comments well from what I remember and most importantly would mangle the HTML embedded in my Javadoc comments.
These are little touches that Eclipse takes care to handle... like ul-li lists inside of Javadoc that it will leave as a list and not try and compact down into a run on sentence.
Or things like p-tags formatted nicely as paragraphs.
I literally just want the default formatter from Eclipse in IJ and I'd be a happy camper.
I am surprised more people don't notice these discrepancies, but I don't want to be the only one pestering the IJ team for these fixes. They have plenty of other things to work on.
As I said I like to write a lot of comments; so I notice this more than most. I don't think I represent the norm here.
So really - IntelliJ IDEA Community Edition is right now the best IDE for Android development and it's free too. Forget about Eclipse.
Do you know if there is an option to turn this behavior off? This seems like a small thing but it is a complete dealbreaker for me.
* Support for web development with the Play framework.
* Groovy 2.0 support with new intention actions and refactorings.
* Gradle integration.
* CoffeeScript editor with code assistance, inspections and formatting options.
* Grails 2.0 support with all its features, including also Grails web-flow and Spock framework.
And most importantly,
* The updated IntelliJ IDEA Community Edition gets important improvements for Android development, including live preview of Android UI layouts and compatibility with the latest Android 4.0 SDK (Ice Cream Sandwich).
A few times a year I'll run into an issue and fire off a support request. "Serge" usually responds within minutes, either with helpful guidance or an offer to create a bug report (that actually gets fixed). This same guy has been answering my support requests for something like 4 years now... incredible.
Now if only the vim plugin could be made a little less buggy (not jetbrains fault)
Give it a go: in your project right-click "External libraries". What would you expect? Something like "add new one", "manage", "copy from..."? No such luck - this is what you get instead.
- new (always inactive)
- cut, copy (always inactive)
- find / replace in path / analyze / reformat / optimize imports / compile (for external libraries? seriously?)
- refactor, add to favourites (expands but all options inactive)
- local history (never active, not what you'd imagine)
- various file operations (for "collections" of external libraries?)
- update copyright (active, but seems to be a noop)
Ah - you actually wanted to manage the external libraries? Try right-clicking the module, "open module settings" (how about "settings"?), "libraries" / "global libraries" (there's no mention of "external libraries"). And that's just one trivial issue that every single user of idea will see fairly frequently. IDEA is full of them.
Eclipse, NetBeans and IntelliJ are all fantastic; seriously, all of them.
They all have a slightly different fit and feel to them. Just figure out which one meshes with your mental model and workflow best and have at it.
The idea that one is categorically better than another is just not accurate. They are certainly better than each other at different things, but not better or worse at EVERYTHING than one another.
Unless someone actually likes Eclipse or is already very familiar with it I cannot recommend it over IntelliJ.
> "so it doesn't really matter what else it is good at"...
I think it is safe to say UX is really important to you ;)
I don't particularly like Eclipse (I don't hate it either, but it's not exactly winning best coding environment for me), but in the past IDEA has just felt "clunky" to me. The text always looked off, the environment itself seemed difficult to use, and the whole experience just seemed jerky and slow. Then I tried out 11 on my MacBook, and man, they've really taken the time to clean things up. I haven't tried it on Windows yet, but it really fits in well with Lion. It's also WAY more performant than past versions, at least from my subjective experience.
Combined with the fact that it works really well with Maven out of the box (and that it's been one thing after another with m2eclipse), this'll be the first time I purchase an IDEA license.
Have you tried working in Java? I happily use Emacs for every other language I use, but even doing simple XML processing becomes unmanageable without intelligent auto-complete.
Further when you're marked on code style in an OO context the ability to refactor code smoothly is a huge bonus, that you just don't get from a mere text editor.
On the other hand, the Maven integration in either edition of IDEA is much nicer than either Eclipse or Netbeans.
And the better integration with Maven was our primary reason for moving to IntelliJ.
They have fixed everything I have ever filed a bug about. (I use RubyMine for some Ruby projects, because even though the UI is kinda insane, coding without text completion is IMO more insane.)
On a related note, their bug tracker, YouTrack, is also probably the best of the dozen or so major ones I've used. Really fast, great keyboard support, and free for small teams.
Back in 2001 or so, IntelliJ was fucking mind-blowing with its Java completion and high-level insight into your code. Now, Microsoft's Visual Studio or Apple's Xcode can hang, and the other Java IDEs are at least in the same league.
But very few IDEs can do a decent job of completing code for dynamic languages (especially those unlike Objective-C, with its opt-in (but fairly ubiquitous) type declarations). RubyMine (which is a variant of IDEA) does this much better than anything else I've seen.
Most IDEs and editors tend to offer to complete e.g. every method defined by every class, or they fail to offer to complete the thing that you mean. That's pretty much garbage.
It allows too much and has a too complicated syntax. Scala is what C++ was for C with a bit of Perl mixed in.