官方文档 文件名:.editorconfig 模板 root=true # 根目录的配置文件,编辑器会由当前目录向上查找 [*] # 匹配所有的文件 charset = utf-8 # 文件编码是 u