dprint / dprint-plugin-roslyn

Roslyn wrapper C# and Visual Basic code formatting plugin for dprint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dprint-plugin-roslyn

CI

Wrapper around Roslyn in order to use it as a dprint plugin for C# and Visual Basic code formatting.

Install

  1. Install dprint
  2. Follow instructions at https://github.com/dprint/dprint-plugin-roslyn/releases/

Configuration

Specify a "roslyn" configuration property in dprint.json:

{
  // etc...
  "roslyn": {
    "csharp.indentBlock": false,
    "visualBasic.indentWidth": 2
  }
}

C# configuration uses the CSharpFormattingOptions (use "csharp.<property name goes here>": <value goes here> in the configuration file).

It does not seem like roslyn supports any VB specific configuration.

About

Roslyn wrapper C# and Visual Basic code formatting plugin for dprint

License:MIT License


Languages

Language:C# 82.5%Language:Rust 10.6%Language:TypeScript 6.1%Language:PowerShell 0.8%