[C# code style] Indent of parameters in lambda or delegate method

I expect my code will be like this

container.RegisterSingleton<IProductUpdateTask, ProductUpdateTask>(
   new UnityInjector<IProductUpdateTask>().WithCombinedType<INetWorkConfiguration, IMobileApplicationConfig>()
                                          .Build());

But instead, I got this

container.RegisterSingleton<IProductUpdateTask, ProductUpdateTask>(new UnityInjector<IProductUpdateTask>()
    .WithCombinedType<INetWorkConfiguration, IMobileApplicationConfig>()
    .Build());																																																		

How can I fix this? 

0
1 comment

Hello Supnep.

Thank you for contacting Rider support.

Would you mind trying to change the value for the Settings | Editor | Code Style | C# | Tabs, Indents, Alignment | General | Line continuation indent multiplier setting and see if that helps?

Also, you might find a feature “Detect Code Style Settings” to be useful:

If nothing helps, I would appreciate it if you could share a screenshot that demonstrates the issue;

Have a nice day!

0

Please sign in to leave a comment.