New user question: emacs magic tab?

I've just started using the EAP 3.0 version of IDEA and am extremely impressed. I'm moving from XEmacs and my initial question has to do with a feature found there.

Is there any equivalent of the 'magic tab'? In emacspeak this is 'indent-for-tab-command', generally bound to the "tab" key. Whenever you hit "tab" the current line will be indented depending on its location in the surrounding code.

Thanks!

Chris

5 comments
Comment actions Permalink

As far as I know, there is nothing that correctly indents an already-typed-in line. If your line is blank, you can hit the End key and that will take your cursor to the correct spot. But try Ctrl-Alt-L. It's a bit more powerful than what you're looking for, but I use it all the time to layout even a few lines of code.

Tobin

0
Comment actions Permalink

there is already a request for this feature (request #298). go and vote for it!
http://www.intellij.net/tracker/idea/viewSCR?publicId=298

0
Comment actions Permalink

CNTL-ALT-I auto indent. Works just like Emacs except it indents the line then moves the cursor to the next line automatically... Use the KeyMap and tie it to the TAB key. Have to remove some other TAB key bindings to do it though.

0
Comment actions Permalink

WHOA!! I didn't know that. Everytime I turn around, there's some new trick that I had no idea existed. Great job guys

Tobin

0
Comment actions Permalink

Very handy, thanks for the pointer. Being able to stay on the current line is very nice, but we can't have everything, right? :)

0

Please sign in to leave a comment.