Dfmt line breaks

helxi via Digitalmars-d-ide digitalmars-d-ide at puremagic.com
Thu Jun 22 14:58:52 PDT 2017


Hi. I am curious if there is any way to prevent dfmt from 
formatting my lines from
///
     import std.stdio, std.conv, std.algorithm, std.range, 
std.string, std.bigint;

     void main()
     {
         auto arr =
         stdin
         .readln
         .strip
         .splitter
         .array
         .permutations
         .map!(join)
         .map!(to!BigInt)
         .array
         .dup
         .sort();

         writeln(arr[0], ' ', arr[$-1]);
     }
///
to
///
import std.stdio, std.conv, std.algorithm, std.range, std.string, 
std.bigint;

void main()
{
     auto arr = 
stdin.readln.strip.splitter.array.permutations.map!(join)
         .map!(to!BigInt).array.dup.sort();

     writeln(arr[0], ' ', arr[$ - 1]);
}
///


I am using VS Code with Code-d extension.



More information about the Digitalmars-d-ide mailing list