Skip to content

[Bug]: Visual Studio extension AXAML support #1799

@jonathanp12

Description

@jonathanp12

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

  1. Open a AXAML (Avalonia) file as source code
  2. Right-click on the editor to open the contextual menu
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions