Todd Breiholz wrote:
[...]
> The final } should be lined up with start of the method signature (which
> is what happens if I don't indent the throws clause)
A slight variation --
I always put my throws clauses on their own line after the method name
regardless of space availability after the method name. I also indent the
throws clause, much in the same way that you do. However, I've managed to
get IDEA to do the indentation for me. If I type this:
int getFoo() throws
and then cursor back to the closing paren, hit DEL and ENTER, the throws
clause indents automatically. My braces then line up as one would expect (in
the same column as the start of the method definition/declaration line).
Which leads to a feature request: it would be wonderful if a method
declaration could receive the same indentation treatment as a class declaration:
public class Foo<ENTER>
leaves the cursor indented on the next line. This does not occur with a method:
public int getFoo()<ENTER>
leaves the cursor at the start of the next line. Then perhaps if the next
character typed is the opening brace, un-indent.
cheers,
Chris
--
Chris Woods ICQ UIN#21740987 [EMAIL PROTECTED]
Experienced Java Developer Looking For Work in Nashua, NH area:
http://resumes.dice.com/objectnetworks
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list