{"id":13445304,"url":"https://github.com/dotnet/codeformatter","last_synced_at":"2026-01-10T11:13:23.851Z","repository":{"id":25466079,"uuid":"28896487","full_name":"dotnet/codeformatter","owner":"dotnet","description":"Tool that uses Roslyn to automatically rewrite the source to follow our coding styles","archived":true,"fork":false,"pushed_at":"2022-07-11T17:29:55.000Z","size":967,"stargazers_count":1236,"open_issues_count":93,"forks_count":244,"subscribers_count":232,"default_branch":"main","last_synced_at":"2024-09-23T16:32:40.218Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/dotnet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE-OF-CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2015-01-07T03:28:44.000Z","updated_at":"2024-09-22T04:18:55.000Z","dependencies_parsed_at":"2022-07-10T12:15:16.350Z","dependency_job_id":null,"html_url":"https://github.com/dotnet/codeformatter","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet%2Fcodeformatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet%2Fcodeformatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet%2Fcodeformatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet%2Fcodeformatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotnet","download_url":"https://codeload.github.com/dotnet/codeformatter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219874916,"owners_count":16554631,"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":[],"created_at":"2024-07-31T05:00:30.148Z","updated_at":"2025-09-30T18:31:45.977Z","avatar_url":"https://github.com/dotnet.png","language":"C#","readme":"# CodeFormatter\n\n***NOTE: This repo is archived. The replacement is [dotnet/format](https://github.com/dotnet/format).***\n\nCodeFormatter is a tool that uses Roslyn to automatically rewrite the source to\nfollow our coding styles, which are [documented here][corefx-coding-style].\n\n[corefx-coding-style]: https://github.com/dotnet/corefx/blob/master/Documentation/coding-guidelines/coding-style.md\n\n## Prerequisites\n\nIn order to build or run this tool you will need to have Microsoft Build Tools\n2015 installed.  This comes as a part of [Visual Studio 2015](https://www.visualstudio.com/downloads/download-visual-studio-vs).\n\n## Installation\n\nDownload binaries from [GitHub Releases](https://github.com/dotnet/codeformatter/releases)\n\n## Usage\n\nIn order get the usage, simply invoke the tool with no arguments:\n\n```\n$ .\\CodeFormatter.exe\nCodeFormatter \u003cproject or solution\u003e [\u003crule types\u003e] [/file:\u003cfilename\u003e] [/nocopyright] [/c:\u003cconfig1,config2\u003e [/copyright:file]\n    \u003crule types\u003e - Rule types to use in addition to the default ones.\n                   Use ConvertTests to convert MSTest tests to xUnit.\n    \u003cfilename\u003e   - Only apply changes to files with specified name.\n    \u003cconfigs\u003e    - Additional preprocessor configurations the formatter\n                   should run under.\n    \u003ccopyright\u003e  - Specifies file containing copyright header.\n```\n\n## Contributing\n\nWe follow the same contribution process that \n[corefx is using][corefx-contributing].\n\n[corefx-contributing]: https://github.com/dotnet/corefx/wiki/Contributing\n","funding_links":[],"categories":["Frameworks, Libraries and Tools","Ecosystems","框架, 库和工具","🗒️ Cheatsheets"],"sub_categories":["Code Analysis and Metrics","[C#](https://docs.microsoft.com/en-us/dotnet/csharp/)","代码分析和指标","📦 Libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotnet%2Fcodeformatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotnet%2Fcodeformatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotnet%2Fcodeformatter/lists"}