First thing I don’t like in IntelliJ
After finding the first thing I love in IntelliJ, I’ve found the first thing I don’t like. The create new class feature is, well, too simple. It doesn’t allow you to extend another class or implement an interface.
In Eclipse when you create a new class, you can do all these things and when implementing an interface it will stub out the methods, including adding the appropriate JavaDocs. Yes, I can right-click and add some of these things, but it is nice to do it all at once. Surely there is a way to do this??
I almost forgot one other thing with the code formatting. I can’t find a way to have it align member variables. I can do it manually, but having the Ctrl-F do it is pretty nice. I can do all the other formatting things that I want in IDEA except that one. A minor thing though.
Don’t miss anything, subscribe!
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.
Comments
i think the class creation is all right in IDEA. because usually adding an interface, method or creating a main method is very very trivial. You need to change the way you think on this. Usually i write or base class, then create an implementation or subclass from it. For doing it, just Alt enter on the interface-class name, there will be the option to create an implementer or subclass. i even create methods that way, like write the method call first, then idea creates it for you.
For the formatting issue. whats wrong with ctrl alt L ? or i did not understand your point..
Simple click on the class name in the code editor window and press Alt-Enter. You will have options to create subclass, on an interface you will be given an option to implement interface. The nice thing about this is that it’s all about key strokes and less mouse/wizard driven. That’s something you will need to switch your thinking about. Doing it all at once sounds to wizard like, which if you are looking to use Intellij then you have to switch that thinking. CTRL-I and CTRL-O for implementing and overriding a class and stub generation as well
Get the keyMap for IntelliJ from
http://www.jetbrains.com/idea/documentation/documentation.html
The KeyMap will give you key mappings for everything…

The new class functionality is something I always liked about intellij and disliked about eclipse, and it shows a bit of philosophical difference between the two. In intellij they want you to get back into the text editor as fast as possible. The new class functionality in intellij is really just to give a name to new file. Once your back in the editor its easyI implement and extend interfaces and classes and override methods.
You can see the same sort of philosophy in all the custom editors for config files that eclipse/wsad/rad have historically had, that I always disliked. Just give the XML file and good XML editor in the IDE.
*sarcasm* As far as the javadoc comments go, do you know how much time I spend deleting default eclipse comments because they say nothing but the default? *end sarcasm*
You can’t fix the javadoc problem, as far as I can tell, but you can change other things…
File -> Setings -> IDE Settings -> File Templates
Also there is an Aligner plugin that might help in aligning things, problem not quite what your looking for and not as full featured as whats in eclipse.
Hope that helps