Poll/discussion: dfmt option for single vs double indents for multi-line code
deadalnix
deadalnix at gmail.com
Sat Dec 30 15:21:45 UTC 2023
On Saturday, 30 December 2023 at 14:54:54 UTC, JN wrote:
> On Friday, 29 December 2023 at 09:08:33 UTC, Prajwal S N wrote:
>> - `dfmt_single_indent`: If set to true, indents multi-line
>> function declarations with a single tab. The default is false.
>> E.g.
>> ```d
>> // default
>> void foo(int a, char b, string c, int d,
>> char e, string f) {}
>> // true
>> void foo(int a, char b, string c, int d,
>> char e, string f) {}
>> ```
>>
>
> If it were my code, I'd format it like this:
>
> ```d
> void foo(int a, char b, string c, int d,
> char e, string f) {}
> ```
>
That is what sdfmt will do.
More information about the Digitalmars-d
mailing list