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
Not the same results in "attribute ordering" between Visual Studio and Rider #407
Comments
@wlaroche to confirm, you are observing this with the default settings in the extension (i.e., no external settings configuration file)? To help debug, can you try using the default settings as an external configuration to see if that resolves the differences? |
OK, i'm just seing that i have a Settings.XamlStyler near my solution with this content:
I tried 2 cases: In my case, I would not set a specific file, because in the team, each developer has its own workspace. I would like to use this option: "Search in drive root" |
Describe the bug
I'm using Visual Studio 2022 (Version 17.3.1) and Rider 2022.2.2 with Xaml styler extension:
VS : 3.2208.1
Rider : 3.2208.0.0
OS: Windows 10 and 11
In a WPF .net 6 application, I want to format the xaml and i have not the same results when using VS and Rider.
I kept the default settings after the plugin installation.
Bug 1:
In VS case:
In Rider case: all attributes are ordered by name, but it seems the the rules are not applied:
to fix the behavior and move x:Attribute on first location in the xml tag, I have to uncheck in settings "Enable attribute reordering", save options, and go back to the same menu and enable the checkbox. and now ordering is ok.
Bug2 (with the same xaml styler options):
VS case : when formatting xaml, visual sutio keep some attributes in the same line:
Rider case : when formatting, some properties are in a different line.
Is there any other options to have the same formatting behavior between this two editors ?
Thanks.
The text was updated successfully, but these errors were encountered: