# 这是一个顶级配置文件,停止向父目录查找 root = true # === 全局通用设置 (所有文件) === [*] charset = utf-8 indent_style = space indent_size = 2 end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true # === Dart 文件专用设置 === [*.dart] # SDK 原始代码使用较长的行宽,设置为 120 以保持一致 max_line_length = 120 indent_size = 2 # === YAML/JSON 文件 (配置文件) === [*.{yaml,yml,json}] indent_size = 2 # === Markdown 文件 (文档) === [*.md] trim_trailing_whitespace = false max_line_length = 0