// plugins

Roslyn Plugin

Adapter plugin that formats C# and Visual Basic code via Roslyn.

Formats .cs and .vb files.

Install and Setup

In your project's directory with a dprint.json file, run:

dprint add roslyn

This will update your config file to have an entry for the plugin. Then optionally specify a "roslyn" property to add configuration:

{
  "roslyn": {
    // roslyn's config goes here
  },
  "plugins": [
    "npm:@dprint/roslyn@x.x.x"
  ]
}

Configuration

See Configuration

Playground

See Playground

Source

See https://github.com/dprint/dprint-plugin-roslyn