Xavalon / XamlStyler

Visual Studio extension to help format your XAML source code
Apache License 2.0
1.21k stars 130 forks source link

Wrapping brace values with commas. #315

Open JulesMoorhouse opened 3 years ago

JulesMoorhouse commented 3 years ago

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.