XamlStyler icon indicating copy to clipboard operation
XamlStyler copied to clipboard

Wrapping brace values with commas.

Open JulesMoorhouse opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. This extensions is almost perfect for us, however, we like to keep our code below 80 characters in length, to make side-by-side pull request easier on the eye, so we don't have to use horizonal scroll.

The problem is where we have lines which include conveter bindings, the XamStyler won't wrap them after the comma.

e.g.

IsEnabled="{Binding IsBusy, Converter={StaticResource NegateBooleanConverter}}"

Whereas we prefer...

 IsEnabled="{Binding IsBusy, 
  Converter={StaticResource NegateBooleanConverter}}"

Describe the solution you'd like I'd like to the see XamlStyle provide a preference to allow wrapping of brace values with comma to the next line with an indentation.

Describe alternatives you've considered As a workaround I've turned off format on save... and making the change manually... but this is a bad solution as it stops our devs making mistakes.

JulesMoorhouse avatar Jan 07 '21 10:01 JulesMoorhouse