- 安装插件
EditorConfig for VS Code - 新建
.editorconfig文件在根目录 .editorconfig文件添加以下呢内容
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
保存文件时,将文件的换行格式保存为
LF
EditorConfig for VS Code.editorconfig 文件在根目录.editorconfig 文件添加以下呢内容root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
保存文件时,将文件的换行格式保存为
LF