New indents in Visual D not tab aligned

Rainer Schuetze via Digitalmars-d-ide digitalmars-d-ide at puremagic.com
Sat Sep 16 09:21:29 PDT 2017



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


More information about the Digitalmars-d-ide mailing list