New indents in Visual D not tab aligned
Joseph via Digitalmars-d-ide
digitalmars-d-ide at puremagic.com
Sat Sep 16 19:09:03 UTC 2017
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 ;/
More information about the Digitalmars-d-ide
mailing list