|
From: <jue...@we...> - 2004-07-27 16:49:25
|
I see, you refer to the parameter aligning in new lines, which I do have = set in my IDEA code style. That's indeed messing up things for other tab = sizes, when usign hard tabs. So we should probably not use parameter aligning as long as we stay with = hard tabs then... But it just looks nicer, IMO - if the tab size matches = ;-) Juergen -----Original Message----- From: spr...@li... [mailto:spr...@li...]On Behalf Of Colin Sampaleanu Sent: Tuesday, July 27, 2004 6:15 PM To: spr...@li... Subject: [Springframework-developer] Formatting in the face of tab usage I was looking at DefaultXmlBeanDefinitionParser, and it's clear that=20 whoever formatted it (Juergen I guess) is using an editor with hard tabs = set to 2 characters (not the more common 4 or 8). I say this because for = some method calls, the continuation line lines up method args, but only=20 if tabs are set to 2. If they are 4 or 8, the continuation line is _way_ = over to the right. While I'm not a big fan of hard tabs, as per our discussion last fall, I = can live with them. But what this means is that any continuation lines=20 need to be simply one or more tabs farther in than the line before it.=20 If you format lines so that you use hard tabs to line up with some=20 non-tab text in a line above, this will completely mess up for other=20 people using different tab settings. Ditto with adding some real spaces=20 (with or without tabs) at the beginning of the line. Essentially _all_=20 indentation has to be based only on tabs. Colin ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=3D4721&alloc_id=3D10040&op=3Dclick _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |