-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use FormatOnSave setting in Settings.XamlStyler #161
Comments
According to the Wiki page configuration file, it seems possible to set the FormatOnSave configuration - but it seems to be ignored. Do I do something wrong, or is it ignored? Can you only set this setting through VS? I am using VS 17. |
Hmm, you are right. Let me dig into this to see whether it was intended to be include in the config and at some point it regressed, or was unintentionally added and isn't respected at all. |
Implemented here tmatz@1d4bdbc . |
@tmatz Feel free to submit a PR with your change. Looks good (I am not the biggest fan of early returns, but we are not consistent anyways...)! |
@grochocki Thank you! I submitted PR now. I added fix description about default value of FormatOnSave. |
Please use "FormatOnSave" setting in "Settings.XamlStyler" file.
I want to format XAML files only in the specific projects.
- Project1.csproj
- Project1.xaml
- Project2.csproj
- Project2.xaml
- Settings.XamlStyler setting 2: FormatOnSave = true
Project1.xaml is not formatted on save (according to setting 1).
Project2.xaml is formatted on save (according to setting 2).
The text was updated successfully, but these errors were encountered: