On Thu, 2002-02-14 at 00:08, Bradshaw, Paul wrote:
> This is EXACTLY the reason I wish the { [Enter] would "format as you type"
> rather than trying to be a built-in "live template".
>
> I want to type "if(x){foo(y);}" as one string of text, and have it come out
> as:
>
> if (x)
> {
> foo(y);
> }
>
> (or however else you have the brace settings configured).
>
> I want it to "code-layout as I type", not try and second guess by adding
> characters I haven't typed yet (like the closing brace) unless I tell it to
> (by invoking a live-template). I feel this would be the MOST useful, I
> think (especially if it were an option that could be turned off for people
> who are annoyed by their code shifting around as they type).
+5
I'm used to this kind of formatting in Emacs with its "electric" braces
and semicolons (although there I would have typed "if (x) {foo(y);}"
since the parentheses didn't automatically add spaces).
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list