-
-
Notifications
You must be signed in to change notification settings - Fork 138
Open
Milestone
Description
Description
The Visual Studio extension for CSharpier seems to support AXAML files but for me it won't. I must use CLI to format them. I use the latest version, 2.2.0, with the latest version of Visual Studio Community 2026. I tried to call directly the VS command EditorContextMenus.CodeWindow.ReformatWithCSharpier to no avail.
Steps to Reproduce
- Open a AXAML (Avalonia) file as source code
- Right-click on the editor to open the contextual menu
- Look for the menu "Reformat with CSharpier"
Expected Behavior
The menu "Reformat with CSharpier" should be there.
Actual Behavior
The menu "Reformat with CSharpier" is not there.
EDIT: Only AXAML is impacted. Here is below my .csharpierrc file content:
{
"overrides": [
{
"files": "*.cs",
"formatter": "csharp",
"printWidth": 125,
"useTabs": false,
"indentSize": 3,
"endOfLine": "lf"
},
{
"files": "*.{axaml,csproj,manifest,slnx}",
"formatter": "xml",
"printWidth": 125,
"useTabs": false,
"indentSize": 2,
"endOfLine": "lf"
}
]
}
Metadata
Metadata
Assignees
Labels
No labels