From: Erik V. <eri...@hc...> - 2008-05-27 21:53:55
|
> > > Yes. 4 space indents, expand tab characters to spaces is > fine by me. > > My current setting is 4 with tabs, but in fact I almost never > reformat, > because the formatter tends to break lines in ways I don't like. > I'm pretty good at formatting manually (he boasted), but no doubt > tabs and spaces get mixed this way. > > But I agree that it's time to sort this out. I have committed an experimental formatting standard for Eclipse named Rails-format.xml (in CVS under 18xx). It is an export from a new standard named "Rails" that I created out of the Eclipse default. The main change is, that tabs are not used at all - I found that advice in several places. For the rest it is... well, the way I like it... To use it, I guess it must be imported in the same place from where I created it: Project|Properties|Java Code Style|Formatter. Somewhere I found a remark that in Eclipse 3.x it is possible to reformat all sources in one fell swoop, but I haven't yet discovered how to do that. I haven't reformatted anything yet. I also had a look at Codestyle, but from a superficial glance I concluded that it does only reporting, no automatic or on-demand formatting. I doubt if it will add much to what we can already do with Eclipse to find simple whitespace differences. Erik. |