Integrated code formatter

rikki cattermole rikki at
Tue Jan 18 01:59:25 UTC 2022

On 18/01/2022 11:46 AM, H. S. Teoh wrote:
>> clang-format is indeed something I very much miss for D. Precisely
>> this "only reformat this small fragment" functionality is extremely
>> time saving.
> Does dfmt not do this?

Doesn't appear to.

Keep in mind it uses libdparse to actually ya know, parse the code.

So a small fragment probably wouldn't format properly beyond some basic 
rules anyway.

More information about the Digitalmars-d mailing list