All Projects → belav → csharpier

belav / csharpier

Licence: MIT license
CSharpier is an opinionated code formatter for c#.

Programming Languages

C#
18002 projects
typescript
32286 projects
java
68154 projects - #9 most used programming language
powershell
5483 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to csharpier

Parallel Prettier
Concurrent prettier runner
Stars: ✭ 84 (-75.07%)
Mutual labels:  formatter, prettier
Pettier
Prettier config that randomizes options and arbitrarily switches between spaces and tabs 🙄
Stars: ✭ 149 (-55.79%)
Mutual labels:  formatter, prettier
Prettier
Prettier is an opinionated code formatter.
Stars: ✭ 41,411 (+12188.13%)
Mutual labels:  formatter, prettier
Prettier Eslint Cli
CLI for prettier-eslint
Stars: ✭ 451 (+33.83%)
Mutual labels:  formatter, prettier
Prettyhtml
💅 The formatter for the modern web https://prettyhtml.netlify.com/
Stars: ✭ 241 (-28.49%)
Mutual labels:  formatter, prettier
Prettier Atom
An atom package for the prettier formatter.
Stars: ✭ 750 (+122.55%)
Mutual labels:  formatter, prettier
Prettier Plugin Apex
Code formatter for the Apex Programming Language
Stars: ✭ 138 (-59.05%)
Mutual labels:  formatter, prettier
Javascriptprettier
A Visual Studio extension
Stars: ✭ 118 (-64.99%)
Mutual labels:  formatter, prettier
Prettier Plugin Csharp
Prettier C# Plugin
Stars: ✭ 224 (-33.53%)
Mutual labels:  formatter, prettier
Poetic
Automatically install and maintain ESLint, Prettier, EditorConfig and Airbnb rules for JavaScript, TypeScript and React.
Stars: ✭ 165 (-51.04%)
Mutual labels:  formatter, prettier
Prettier Eslint
Code ➡️ prettier ➡️ eslint --fix ➡️ Formatted Code ✨
Stars: ✭ 3,435 (+919.29%)
Mutual labels:  formatter, prettier
plugin-pug
Prettier Pug Plugin
Stars: ✭ 163 (-51.63%)
Mutual labels:  formatter, prettier
prettier-eslint-atom
DEPRECATED IN FAVOR OF prettier-atom + ESLint integration
Stars: ✭ 64 (-81.01%)
Mutual labels:  formatter, prettier
Plugin Php
Prettier PHP Plugin
Stars: ✭ 1,243 (+268.84%)
Mutual labels:  formatter, prettier
prettier-check
Check that all files match prettier code style.
Stars: ✭ 54 (-83.98%)
Mutual labels:  formatter, prettier
Spotless
Keep your code spotless
Stars: ✭ 2,285 (+578.04%)
Mutual labels:  formatter, prettier
Typescript Express Starter
🚀 TypeScript Express Starter
Stars: ✭ 238 (-29.38%)
Mutual labels:  formatter, prettier
pre-commit-hooks
Standardizing our code quality tooling 🛠️
Stars: ✭ 44 (-86.94%)
Mutual labels:  formatter, prettier
rspec-github
Formatter for RSpec to show errors in GitHub action annotations
Stars: ✭ 33 (-90.21%)
Mutual labels:  formatter
JsonFormatter
Easy, Fast and Lightweight Json Formatter. (Serializer and Deserializer)
Stars: ✭ 26 (-92.28%)
Mutual labels:  formatter

CSharpier

CSharpier is an opinionated code formatter for c#. It uses Roslyn to parse your code and re-prints it using its own rules. The printing process was ported from prettier but has evolved over time.

CSharpier provides a few basic options that affect formatting and has no plans to add more. It follows the Option Philosophy of prettier.

Quick Start

Install CSharpier globally using the following command.

dotnet tool install csharpier -g

Then format the contents of a directory and its children with the following command.

dotnet csharpier .

CSharpier can also format on save in your editor or as a pre-commit hook. Then you can ensure code was formatted with a CI/CD tool


Read the documentation

Try it out


Before

public class ClassName {
    public void CallMethod() { 
        this.LongUglyMethod("1234567890", "abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
    }
}

After

public class ClassName
{
    public void CallMethod()
    {
        this.LongUglyMethod(
            "1234567890",
            "abcdefghijklmnopqrstuvwxyz",
            "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
        );
    }
}

Contributing

See Development Readme

Join Us Discord

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].