Ver código fonte

.editorconfig 设置

Roc 5 anos atrás
pai
commit
a04a17e759
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      .editorconfig

+ 5 - 1
.editorconfig

@@ -4,6 +4,9 @@ root = true
 # c# 文件
 [*.cs]
 
+# 字符集
+charset = utf-8-bom
+
 #### Core EditorConfig 选项 ####
 
 # 缩进和间距
@@ -13,7 +16,8 @@ tab_width = 4
 
 # 新行首选项
 end_of_line = crlf
-insert_final_newline = false
+insert_final_newline = true
+trim_trailing_whitespace = true
 
 #### .NET 编码约定 ####