1 editorconfig 常用字段
(1)charset 编码格式
(2)indent_style 缩进方式
(3)indent_size 缩进大小
(4)insert_final_newline 是否让文件以空行结束
(5)trim_trailing_whitespace 自动删除文件末尾空白行
(6)max_line_length 疑似最大行宽。
2 匹配规则
3 实例
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,py}]
charset = utf-8