Definitely better as a layout option. If it's not done as
a layout option it's inevitably going to cause problems
in some/many situations. For instance, when you're simply
inserting new code before an existing statement.
before inserting code:
statement;
intending to get to this new code:
if (condition) {
preProcessing();
}
statement;
But, what actually happens:
if (condition) |
statement;
when you press { at the moment it's ok, but you (Drew)
are asking for automatic behavior that isn't what I want:
if (condition) {
statement;
}
So, you say Intellij could work it out based on
you typing the stuff all in one go. what happens
if you've flicked back and forth to
another application or other classes before
finishing the if statement? There's no way
Intellij's going to guess correctly all the time.
If it's a layout option instead intellij won't ever
gett in your way, and you'll be able to sort out all one-line
if's in one go, instead of on a case-by-case basis.
> -----Original Message-----
> From: Thomas Singer [mailto:[EMAIL PROTECTED]]
> Sent: 15 August 2002 10:45
> To: [EMAIL PROTECTED]
> Subject: [Eap-features] Re: Editor: Adding braces to a
> conditional block
>
>
> Maybe this should become a layout code option. I think, than it would
> be easier to solve.
>
> >-----Original Message-----
> >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> >Sent: 14 August 2002 15:52
> >To: [EMAIL PROTECTED]
> >Subject: Editor: Adding braces to a conditional block
> >
> >
> >In the following case (where | represents the cursor):
> >
> > if (condition) |
> > name = "Drew";
> >
> >...press {...
> >
> > if (condition) {
> > |
> > }
> > name = "Drew";
> >
> >This would be a much better outcome:
> >
> > if (condition) {
> > |name = "Drew";
> > }
> >
> >Drew Noakes
> >
> >ThoughtWorks, Inc. UK
> >[EMAIL PROTECTED]
********************* Confidentiality Notice & Disclaimer
***********************
This message, together with any attachments, is for the confidential and
exclusive use of the
addressee(s). If you receive it in error, please delete the message and its
attachments from your
system immediately and notify us by return e-mail. Do not disclose, copy,
circulate or use any
information contained in this e-mail.
(1) The content of this e-mail is to be read subject to Lunn Poly terms of
business, as applicable.
(2) E-mail may be intercepted or affected by viruses and Lunn Poly accepts
no responsibility for
any interception or liability for any form of viruses introduced with this
e-mail.
(3) The sender shall remain solely accountable for any statements,
representations or opinions
that are clearly his or her own and not made in the course of employment.
****************************************************************************
***********
Lunn Poly Limited
[Registered in England (Number 638309)]
Lunn Poly House
Clarendon Avenue
Leamington Spa
Warwickshire
CV32 5PS
Telephone: 01926 452245
Facsimile: 01926 451679
E-mail: [EMAIL PROTECTED]
[A list of Thomson Travel Group companies is available for inspection at
www.thomsontravelgroup.com]
_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features