// plugins
CSharpier Plugin
Adapter plugin that formats C# and XML code via CSharpier.
Formats the same files as CSharpier: .cs and .csx files as C#, and .csproj, .props, .targets, .slnx, .config, .xml, .xaml, and .axaml files as XML. Like CSharpier, it skips generated files (ex. *.g.cs, *.designer.cs, or a C# file starting with an <auto-generated> comment) unless "includeGenerated" is true.
Install and Setup
In your project's directory with a dprint.json file, run:
dprint add csharpier
This will update your config file to have an entry for the plugin. Then optionally specify a "csharpier" property to add configuration:
{
"csharpier": {
// csharpier's config goes here
},
"plugins": [
"npm:@dprint/csharpier@x.x.x"
]
}
Configuration
See Configuration
Playground
See Playground