工具.editorconfig按技术栈预设生成EditorConfig。在线免费的.editorconfig工具添加到快捷入口前端默认(2 空格)Python(4 空格)Go(Tab)root = true [*] charset = utf-8 end_of_line = lf insert_final_newline = true indent_style = space indent_size = 2 trim_trailing_whitespace = true [*.{md,mdx}] trim_trailing_whitespace = false