vscode保存自动将CRLF 转换成 LF

1、下载vscode插件:

EditorConfig for VS Code

2、在项目根目录新建 .editorconfig

root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

你可能感兴趣的:(vue,JavaScript,前端,vue,前端)