New indents in Visual D not tab aligned
Rainer Schuetze
r.sagitario at gmx.de
Sun Sep 17 06:00:17 UTC 2017
On 16.09.2017 21:09, Joseph wrote:
> On Saturday, 16 September 2017 at 16:21:29 UTC, Rainer Schuetze wrote:
>>
>>
>> On 16.09.2017 13:30, Rainer Schuetze wrote:
>>> A minor alternative to case 2 would be to keep the braces aligned to
>>> the parameter list, but indent the first statement to the next tab
>>> stop, e.g.
>>>
>>> int x = foo(123, ()
>>> {
>>> if (cond)
>>> return 7;
>>> return 3;
>>> },
>>> 2);
>>>
>>> This could be applied everywhere, i.e. an opening brace would no
>>> longer cause an indentation by the tab size, but to the next multiple
>>> of the tab size.
>>
>> I implemented this in
>> https://github.com/dlang/visuald/releases/tag/v0.46.0-beta1
>
> Thanks, I still get an issue
>
> void foo(()
> {
>
> })
>
> (can't paste it properly here because formatting is not retained).
>
> Basically aligns with the second ( still ;/
>
>
That's as expected and shown above. The code inside the braces will be
aligned on tab stops. I think this is a good compromise avoiding an
extra indentation.
More information about the Digitalmars-d-ide
mailing list