日常生活的交流与学习

首页 新随笔 联系 管理

CSharpier 配置

.csharpierrc.json

{ "printWidth": 100, "useTabs": false, "tabWidth": 4, "endOfLine": "auto" }

参数说明

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

posted on 2024-08-19 21:07  lazycookie  阅读(28)  评论(0编辑  收藏  举报