D source code formatter

rikki cattermole rikki at cattermole.co.nz
Thu Feb 22 06:37:40 UTC 2018


On 22/02/2018 6:38 PM, psychoticRabbit wrote:
> On Thursday, 22 February 2018 at 04:48:58 UTC, Nicholas Wilson wrote:
>> On Thursday, 22 February 2018 at 04:35:24 UTC, psychoticRabbit wrote:
>>> I rely (heavily) on clang-format in my C code. It save me so much 
>>> effort and has become a vital day to day tool for me.
>>>
>>> I was wondering whether D also has a 'reliable' source code formatter.
>>> (reliable being a key word there).
>>>
>>> Also, if it does, then why is it not included in the distribution - 
>>> given the importance of consistent source code formatting these days.
>>
>> look for 'dfmt'
> 
> thanks. but do you mean:
> 
> dfmt is certainly reliable, so go look for it.
>   or
> for look for dfmt and work out whether it's reliable.

It's the only one we have as a separate tool.

https://github.com/dlang-community/dfmt



More information about the Digitalmars-d mailing list