1、下载vs code插件:EditorConfig for VS Code

 

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

3、在文件中添加以下内容, 即可

root = true

[*]

charset = utf-8

indent_style = space

indent_size = 2

end_of_line = lf

insert_final_newline = true

trim_trailing_whitespace = true

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐