Smart Indenting in Java Code

Is it possible to set up "smart" indenting, like JDE in Emacs.

For Example, in JDE, if I have:

if (test == true) {
if (test2 == something) {
doSomething();

}
}

If I am at the begining of the line at , and hit tab,
it will go to the correct spot. Currently, I cannot get IDEA to do this.

Thanks for any help!

Brian

2 comments
Comment actions Permalink

As far as I know, this is not possible at the moment, but there is a feature request for this, see http://www.intellij.net/tracker/idea/viewSCR?publicId=298 and vote for it.
The autoindenting behaviour from Emacs tab is available through Ctrl-Alt-I.

0
Comment actions Permalink

Just press "End" :)

I miss the real emacs' tab functionality a lot too.

Vince.

0

Please sign in to leave a comment.