"Max chain method calls on a single line" setting is absent
Hello.
I noticed that there is no possibility to adjust allowed amount of methods on single line when method chain calls setting is set chop always.
I see that there are similar settings for another settings: "max invocation arguments on a single line", "max format parameters on a single line", "max array initializer elements on a single line", "max object and collection initializer elements on a single line"
Could you add setting "Max chain method calls on a single line", please?
//Before cleanup
var numbers = Enumerable.Range(0, 10).Select(x => x*x).ToList(); //Chain of 3 methods
var apple = new Apple()
{
Id = Guid.NewGuid().ToString(), //Chain of 2 methods
Color = "Red",
};
//After cleanup (now)
var numbers = Enumerable.Range(0, 10)
.Select(x => x*x)
.ToList(); //chopped
var apple = new Apple()
{
Id = Guid.NewGuid()
.ToString(), //chopped
Color = "Red",
};
//After cleanup (when "Max chain method calls on a single line" = 2)
var numbers = Enumerable.Range(0, 10)
.Select(x => x*x)
.ToList(); //chopped
var apple = new Apple()
{
Id = Guid.NewGuid().ToString(), //doesn't chopped
Color = "Red",
};
Please sign in to leave a comment.
Hello Egor!
Thank you for the feedback.
I've filed corresponding feature request - https://youtrack.jetbrains.com/issue/RSRP-472038.
Please feel free to comment or vote for it.
Thank you.
Thank you very much, Angelina.