跳到主要内容

editorconfig

  • editorconfig是用于跨不同的编辑器和IDE为多个开发人员维护一致的编码风格的配置文件
  • editorconfig就是为了统一编程风格

在不同编译器环境里,统一编程风格

.editorconfig配置​

json
# http://editorconfig.org
root = true

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

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab