I have some problems with the switch statements, too:
switch (var) {
case 0:
// ...
break;|
}
Pressing <Enter> after the break leads to:
switch (var) {
case 0:
// ...
break;
|
}
Now I'm typing the next case:
switch (var) {
case 0:
// ...
break;
case 1|
}
It would be cool, if I enter the semicolon (but only if I'm in a
case-statement!), IDEA would indent the case line correctly and (maybe
optional) sets the cursor indented in the new line (Just an idea: would
this be possible with Live templates?):
switch (var) {
case 0:
// ...
break;
case 1:
|
}
Tom
At 13:57 08.02.2002 -0800, you wrote:
>There are times when I'd like to indent my switches as so:
>
>
>switch ( var )
>{
> case 0:
> {
> ...
> break;
> }
>
> case 1:
> {
> ...
> break;
> }
>}
>
>but when I hit enter after the case line I'm already tabbed out to the
>column
>I'd normally put unblocked statements.
>
>Maybe if the next input is a '{' it could be moved back a tab stop.
>
>Glenn McGregor
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list