.editorconfig 340 B

123456789
  1. root = true
  2. [*]
  3. charset = utf-8 # 字符编码 utf-8
  4. indent_style = space # 输入的 tab 都用空格代替
  5. indent_size = 2 # 一个 tab 用 2 个空格代替
  6. end_of_line = lf # 换行符使用 unix 的换行符 \n
  7. insert_final_newline = true # 去掉每行末尾的空格
  8. trim_trailing_whitespace = true # 文件末尾都加一个空行