dfmt - D source code formatter

Walter Bright newshound2 at digitalmars.com
Thu Jul 5 15:24:34 PDT 2012


On 7/5/2012 1:52 PM, Brian Schott wrote:
> On Thursday, 5 July 2012 at 19:22:56 UTC, Walter Bright wrote:
>> I think that formatting the code is actually rather easy - the hard part will
>> be dealing with the comments in a reasonable way.
>
> Eclipse has had a LOT of time and energy put into it, and it still makes my
> javadoc uglier than it was before formatting.
>
> My thought is to properly indent/align comments, but other than that leave them
> unmodified. There are too many things that can go wrong with re-wrapping them
> (I'm imagining accidentally ruining somebody's carefully-crafted ASCII art
> diagram).
>
>

I agree that whatever is inside the comment should be left alone. I was more 
talking about lining up comment blocks, etc.



More information about the Digitalmars-d mailing list