Skip to content

apalugniok/prettier-plugin-csharp

Repository files navigation

🚧 Work in Progress! 🚧

Prettier

Prettier C# Plugin

What does it do?

⚠️ Warning ⚠️ This plugin is still in development and in certain cases it may emit formatted code that does not compile or not format code in a sensible way. It is not ready to be used as part of a prettier pre-commit hook.

Before trying formatting with this plugin please commit your changes.

Prettier C# Plugin is a Prettier plugin that uses the Rosyln API to provide Prettier with a syntax tree it can transform and print in a standardized way.

Prerequisites

In order to run the plugin you need the following:

  1. .NET 5 Runtime or SDK
  2. Prettier

Install

###npm

npm install --save-dev prettier-csharp-plugin

yarn

yarn add --dev prettier-csharp-plugin

Use

prettier --write "**/*.cs"

Maintainers


Andrew Palugniok

About

Prettier plugin providing support for the C# language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages