Possible to implement a simple "Break Early, Break Often" Formatting rule? (TM)

I do not see this happening in the XAML formatting (or technically, in the XML formatting); and so it seems to be a valid request for at least that editor. But in general it's a simple rule, and I'm not sure the C# formatting follows this --- and that is why I'm posting the request (because it can be hard to understand overall).

The goal is simply that "break early, break often" just enforces this kind of thing:

If your line fits on one line, then format it onto one line.

If it doesn't fit, break at the first break, and break all the rest too.

It DOES seem that c# behaves this way for many things. However, I'm not really sure exactly why --- the rules are complex, and it's too hard to understand as one behavior. But the XAML does not format this way; and it would be nice if it could!

Achieving this with the C# settings seems to be possible, but a little hard, and as I've said, it takes many passes through the settings to figure all of it out; and yet the rule is quite simple! (And I'm still not completely convinced whether this is really being enforced or not; because there are so many options!)

Any hope of a simple setting like this?

BTW, I got that term from James Gosling ...

0

Please sign in to leave a comment.