{"id":13593454,"url":"https://github.com/belav/csharpier","last_synced_at":"2025-04-11T03:30:22.601Z","repository":{"id":37345765,"uuid":"313752068","full_name":"belav/csharpier","owner":"belav","description":"CSharpier is an opinionated code formatter for c#.","archived":false,"fork":false,"pushed_at":"2025-03-31T00:00:04.000Z","size":7395,"stargazers_count":1579,"open_issues_count":149,"forks_count":109,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-04-03T22:37:34.713Z","etag":null,"topics":["csharp","dotnet","formatter","prettier"],"latest_commit_sha":null,"homepage":"https://csharpier.com","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/belav.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["belav"]}},"created_at":"2020-11-17T21:52:19.000Z","updated_at":"2025-04-03T13:47:14.000Z","dependencies_parsed_at":"2023-02-18T03:31:24.097Z","dependency_job_id":"d074c04e-8cc0-48ec-883e-3b6f7795cc6a","html_url":"https://github.com/belav/csharpier","commit_stats":{"total_commits":1184,"total_committers":51,"mean_commits":"23.215686274509803","dds":"0.22466216216216217","last_synced_commit":"676c8bcaaa1be66fe40f2622e49524b8ac77d617"},"previous_names":[],"tags_count":162,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belav%2Fcsharpier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belav%2Fcsharpier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belav%2Fcsharpier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belav%2Fcsharpier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/belav","download_url":"https://codeload.github.com/belav/csharpier/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248335310,"owners_count":21086561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","dotnet","formatter","prettier"],"created_at":"2024-08-01T16:01:20.471Z","updated_at":"2025-04-11T03:30:22.566Z","avatar_url":"https://github.com/belav.png","language":"C#","readme":"![CSharpier](./banner.svg)\n\nCSharpier is an opinionated code formatter for c#. It uses Roslyn to parse your code and re-prints it using its own rules. \nThe printing process was ported from [prettier](https://github.com/prettier/prettier) but has evolved over time.\n\nCSharpier provides a few basic options that affect formatting and has no plans to add more. It follows the [Option Philosophy](https://prettier.io/docs/en/option-philosophy.html) of prettier.\n\n### Quick Start\nInstall CSharpier globally using the following command.\n```bash\ndotnet tool install csharpier -g\n```\nThen format the contents of a directory and its children with the following command.\n```bash\ndotnet csharpier .\n```\n\nCSharpier can also format [on save in your editor](https://csharpier.com/docs/Editors) or as a [pre-commit hook](https://csharpier.com/docs/Pre-commit). Then you can ensure code was formatted with a [CI/CD tool](https://csharpier.com/docs/ContinuousIntegration).\n\n---\n\n[Read the documentation](https://csharpier.com)    \n  \n[Try it out](https://playground.csharpier.com)\n\n---\n\n### Before\n```c#\npublic class ClassName {\n    public void CallMethod() { \n        this.LongUglyMethod(\"1234567890\", \"abcdefghijklmnopqrstuvwxyz\", \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\");\n    }\n}\n```\n\n### After\n```c#\npublic class ClassName\n{\n    public void CallMethod()\n    {\n        this.LongUglyMethod(\n            \"1234567890\",\n            \"abcdefghijklmnopqrstuvwxyz\",\n            \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n        );\n    }\n}\n```\n\n## Contributing\nSee [Development Readme](CONTRIBUTING.md)  \n\nJoin Us [![Discord](https://img.shields.io/badge/Discord-chat?label=\u0026logo=discord\u0026logoColor=ffffff\u0026color=7389D8\u0026labelColor=6A7EC2)](https://discord.gg/HfAKGEZQcX)\n\n## Sponsors\n\nSpecial thanks to the [.NET on AWS Open Source Software Fund](https://github.com/aws/dotnet-foss) for sponsoring the ongoing development CSharpier.\n\n[\u003cimg src=\"./Src/Website/static/img/aws.png\" style=\"padding: 10px 0; width: 200px\" /\u003e](https://github.com/aws/dotnet-foss)\n","funding_links":["https://github.com/sponsors/belav"],"categories":["C#","C\\#","dotnet","Tools","Identifiers"],"sub_categories":["GUI - other"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelav%2Fcsharpier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbelav%2Fcsharpier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelav%2Fcsharpier/lists"}