This is EXACTLY why I'm a proponent of a "format as you type" approach,
rather than a template based or "invoke something on keypress" approach.
In this case, with a format-as-you-type approach, you'd just press "{"
somewhere after the closing paren of the if expression, and the start of the
next line (it wouldn't matter where), and the brace would be entered exactly
where you configured it to go (same line, next line, indented or not,
whatever). Then just type the closing brace anywhere after the ";" but
before the else, and presto, done. The editor doesn't get in your way. And
you can stop worrying about white space and indenting and pressing enter all
the time if you like. Just type the code, it's pretty-printed as you type.
Kawa did this fairly well (one of the few things it did well), and I miss it
in IDEA. I too *hate* having the closing brace or paren stuck in for me, as
now I have to consciously "skip over it" at some point to continue coding.
-----Original Message-----
From: "Valentin Kipiatkov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Re: [Eap-list] Can I turn off "auto } insertion" ?
Date: Fri, 1 Mar 2002 15:09:14 +0300
charset="iso-8859-1"
Reply-To: [EMAIL PROTECTED]
It's not possible at the moment to turn off this functionality. We plan to
add such option in the nearest future.
Best regards,
Valentin Kipiatkov
-----------------------------------------------------------
IntelliJ Software, http://www.intellij.com/
"Develop with pleasure"
-----------------------------------------------------------
----- Original Message -----
From: "Marc Palmer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 2:41 PM
Subject: [Eap-list] Can I turn off "auto } insertion" ?
>
> Hi,
>
> I seem to remember a row over this not so long ago. Personally I've found
> that this auto insertion of a closing "}" in Ariadna is more annoying
> than it is helpful. I almost always end up deleting the one Ariadna puts
> in because it is not smart enough to know what I am doing. i.e.
>
> if (something)
> doSomething();
> else
> doSomethingElse();
>
> If I need to put the first condition's code into a block, I often don't
> use "Surround with { }"... so I try to insert the starting brace and hit
> enter:
>
> if (something)
> {
> }
> doSomething();
> else
> doSomethingElse();
>
> Which is a pain in the ass frankly as I have to delete the one inserted
> by IDEA and then manually go and put one in as well! Surround-with is
> just too cumbersome for this kind of trivial task. So - can I turn it
> off? This is such a trivial task that IDEA is actually overcomplicating
> it, instead of helping.
>
> Marc
>
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list