D source code formatter
aberba
karabutaworld at gmail.com
Thu Feb 22 07:50:34 UTC 2018
On Thursday, 22 February 2018 at 05:38:38 UTC, 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.
dfmt is available along witj DCD and other D tools in Visual
Studio Code. Its all package in the code-d package. dfmt formats
D code good enough for the common cases as I don't do much CTFE
or cryptic D coding style.
VS Code is slow though. Its built with electron (html, css,
Javascript) and uses a lot of cpu and ram.
More information about the Digitalmars-d
mailing list