添加EditorConfig配置,使VS保存的文件默认编码为UTF-8
This commit is contained in:
parent
0ddf037a96
commit
72561c78a4
8
.editorconfig
Normal file
8
.editorconfig
Normal file
@ -0,0 +1,8 @@
|
||||
root = true # 所在目录是项目根目录,此目录及子目录下保存的文件都会生效
|
||||
|
||||
[*] # 对于所有文件
|
||||
indent_style = tab # 缩进风格
|
||||
tab_width = 4 # 缩进宽度
|
||||
charset = utf-8 # 文件编码格式
|
||||
end_of_line = crlf # 行尾格式,Windows一般为CRLF,Linux一般为LF,根据需要更改
|
||||
insert_final_newline = true #文件结尾添加换行符,以防警
|
Loading…
x
Reference in New Issue
Block a user