I've always hated that you had to press ENTER after an opening brace to get
it to do the right thing... Kawa did this better (may it rest in well
deserved peace)... the moment you typed the opening brace, it positioned it
properly according to your coding style. So if your style was "opening
braces on the next line", then you could just type this:
if (foo == bar){dosomething();}
And it would look like this:
if (foo == bar)
{
dosomething();
}
It was great... dynamic formatting/layout as you typed. I loved it. And I
miss it. The automatically adding the closing braces/parens is nice, imho,
but it's only the first half of the feature... a partial implementation. I
hope the next version of IDEA goes the rest of the way...
"Sam Wilson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I've been working with 644 for a bit now, and one of the things I really
> like is that when IntelliJ completes code for me it allows me to type over
> the code completed. For instance, in the case of an if statement, if I
type:
>
> if(
>
> then IntelliJ prints this out:
>
> if(<caret>)
>
> And then I fill in the test expression:
>
> if(x==y<caret>)
>
> And if the next key I hit is ")" out of habit, IntelliJ is IntelliJent
> enough to "type over" the ).
>
> What would be really cool is if IntelliJ went one step further and
actually
> put the braces in according to my coding style and place the caret inside
> the braces as in:
>
> if(x==y) {
> <caret>
> }
>
> Does this makes sense? Would anyone else find this useful?
>
> sw
_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features