vs code设置保存时自动将CRLF 转换成 LF

一、下载vs code插件:EditorConfig for VS Codespa

二、在项目目录下新建文件:.editorconfig插件

三、在文件中添加如下内容, 搞定code

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
相关文章
相关标签/搜索