belav / csharpier

CSharpier is an opinionated code formatter for c#.
https://csharpier.com
MIT License
1.43k stars 99 forks source link

Is there any way to not break line when having blocks after inheriting method? #999

Closed arashbahreini closed 1 year ago

arashbahreini commented 1 year ago

Below code is what Csharpier formatted for me,

        public InRiverPackageService(
            IInterfaceX X,
            IInterfaceY Y,
            IInterfaceZ Z,
        )
            : base(ServiceA, ServiceB, ServiceC)
        {
            Body
        }

Is there any way to have it like below?

        public InRiverPackageService(
            IInterfaceX X,
            IInterfaceY Y,
            IInterfaceZ Z,
        ) : base(ServiceA, ServiceB, ServiceC)
        {
            Body
        }
belav commented 1 year ago

No, CSharpier is opinonated and does not provide options for the sytle of formatting. It follows Prettier's Option Philosophy