I hate single statements without braces. Even when I was working with C++ I would always put braces around statements like that. I cannot tell you how many times that has bitten me and other developers I've worked with. I guess you have to pick your poison :)
But, you hit on a good point, all of these "features" should be configurable. > -----Original Message----- > From: Chris Merrill [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 09, 2002 12:55 PM > To: [EMAIL PROTECTED] > Subject: Re: [Eap-features] Improved "completion" > > > Yes, it makes sense (under certain conditions). > No, I wouldn't find it useful. Why? Because our coding > style does not use braces around single statements. Now > that entering a single '{' and hitting return generates > the closing '}', I have everything I want (at least as far > as automatic braces goes). > > That being said, as long as I could turn off the > behavior, I have no objections. > > Chris > > Sam Wilson wrote: > > 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 > > > > > > -- > ********************************* > Chris Merrill > [EMAIL PROTECTED] > ********************************* > > _______________________________________________ > Eap-features mailing list > [EMAIL PROTECTED] > http://lists.jetbrains.com/mailman/listinfo/eap-features > _______________________________________________ Eap-features mailing list [EMAIL PROTECTED] http://lists.jetbrains.com/mailman/listinfo/eap-features
