使用 Roslyn 自动重写源代码以符合我们的编码风格的工具
注意: 此仓库已归档。替换版本为 dotnet/format。 CodeFormatter 是一款使用 Roslyn 自动重写源代码的工具 遵循我们的编码风格,这些风格已在 这里 进行了记录。
要构建或运行此工具,您需要安装 Microsoft Build Tools 2015 年安装。 这是 Visual Studio 2015 的一部分。
从 GitHub 版本 下载二进制文件
要获取使用方法,只需不带参数调用该工具:
$ .\CodeFormatter.exe
CodeFormatter [] [/file:] [/nocopyright] [/c: [/copyright:file]
- Rule types to use in addition to the default ones.
Use ConvertTests to convert MSTest tests to xUnit.
- Only apply changes to files with specified name.
- Additional preprocessor configurations the formatter
should run under.
- Specifies file containing copyright header.我们遵循与 GitHub 相同的贡献流程 corefx 正在使用。
暂无开放 Issues,或尚未同步最近议题。