|
From: Colin S. <col...@ex...> - 2004-07-27 17:39:43
|
No, it's not really an option to align paramters. The whole point of using hard tabs is the idea tha people can set the tabs to whatever size they want. If you start using the tabs to align with non-tab text in a line above, it all breaks down. So this is not exactly high priority, but as we get into files we should probably fix these continuation lines to just continue with something like a double indent (i.e. 2 tabs extra from the line above), or something of that nature. jürgen höller [werk3AT] wrote: >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 >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 >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 >need to be simply one or more tabs farther in than the line before it. >If you format lines so that you use hard tabs to line up with some >non-tab text in a line above, this will completely mess up for other >people using different tab settings. Ditto with adding some real spaces >(with or without tabs) at the beginning of the line. Essentially _all_ >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=4721&alloc_id=10040&op=click >_______________________________________________ >Springframework-developer mailing list >Spr...@li... >https://lists.sourceforge.net/lists/listinfo/springframework-developer > > >------------------------------------------------------- >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_idG21&alloc_id040&op=click >_______________________________________________ >Springframework-developer mailing list >Spr...@li... >https://lists.sourceforge.net/lists/listinfo/springframework-developer > > |