或者,你也可以在命令行中使用 Csharpier 的 CLI 工具来格式化文件: bash dotnet csharpier format path/to/your/file.cs 这将应用你在 .csharpierconfig 文件中定义的格式化规则来格式化指定的文件。 通过以上步骤,你应该能够成功安装、配置和使用 Csharpier 来格式化你的 C# 代码。
CSharpier is an opinionated code formatter for c#. - csharpier/nuget.config at master · JochenHeckl/csharpier
nuget.config Repository files navigation README MIT license 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 ...
tests/Conduit.IntegrationTests packages.lock.json 2 changes: 1 addition & 1 deletion 2 .config/dotnet-tools.json Original file line numberDiff line numberDiff line change @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "csharpier": { "version": "0.27.3", "version": "0...
Support for passing a config file to csharpier #794 Merged belav modified the milestones: 0.22.0, 0.23.0 Jan 15, 2023 belav closed this as completed in #794 Jan 28, 2023 belav added a commit that referenced this issue Jan 28, 2023 Support for passing a config file to csharp...
["DEBUG" - 10:49:39 AM] Looking for /.config/dotnet-tools.json ["DEBUG" - 10:49:39 AM] Unable to find dotnet-tools.json, falling back to running dotnet csharpier --version ["DEBUG" - 10:49:39 AM] dotnet csharpier --version output 0.15.1 ...
- The application was run as a self-contained app because 'C:\Users\bela\AppData\Local\CSharpier\0.26.0\.store\csharpier\0.26.0\csharpier\0.26.0\tools\net8.0\any\dotnet-csharpier.runtimeconfig.json' was not found. - If this should be a framework-dependent app, add the 'C:\Users...
7Tags Code This branch is552 commits behindbelav/csharpier:main. Folders and files Name Last commit message Last commit date Latest commit belav Merge branch 'next' Nov 2, 2021 85dfde0·Nov 2, 2021 History 747 Commits .config Formatting with 0.10.0 (belav#458) ...
.config dotnet-tools.json CHANGELOG.md CSharpier.Build.props 2 changes: 1 addition & 1 deletion 2 .config/dotnet-tools.json Original file line numberDiff line numberDiff line change @@ -9,7 +9,7 @@ ] }, "husky": { "version": "0.3.0", "version": "0.5.2", "commands": [...
Apparently, the current solution prettierjs uses is by default to enforce LF but a config option exists that can be set to auto, cr, lf, or crlf (https://prettier.io/docs/en/options.html#end-of-line). For our team, re-exposing the existing option would solve our issue :) 👍 1 ...