CSharpier 配置
.csharpierrc.json
{ "printWidth": 100, "useTabs": false, "tabWidth": 4, "endOfLine": "auto" }
参数说明
Print Width
Specify at what point the printer will wrap content. This is not a hard limit. Some lines will be shorter or longer.
Default 100
Use Tabs
Indent lines with tabs instead of spaces.
Default false
Tab Width
Specify the number of spaces used per indentation level.
Default 4
End of Line
Valid options:
- "auto" - Maintain existing line endings (mixed values within one file are normalised by looking at what's used after the first line)
- "lf" – Line Feed only (\n), common on Linux and macOS as well as inside git repos
- "crlf" - Carriage Return + Line Feed characters (\r\n), common on Windows
Default auto
原文地址 csharpier.com