We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在日常开发中,经常会切换不同编辑器,总要设置一遍的配置。 团队开发,每个人使用不同的编辑器。要求一样的配置费尽口舌。 如果你在烦恼这些,.editorconfig将成为你的银弹。通过在项目根目录中添加.editorconfig文件并配置一定规则,就可以设置不同编辑器保持一致代码规范。
超过自动换行,仅支持atom等少数编辑器
其它更多属性查看github/editorconfig/
# editorconfig.org root = true [*] charset = utf-8 indent_size = 4 indent_style = space insert_final_newline = true trim_trailing_whitespace = true [*.md] trim_trailing_whitespace = false
The text was updated successfully, but these errors were encountered:
No branches or pull requests
使用editorconfig配置你的编辑器
在日常开发中,经常会切换不同编辑器,总要设置一遍的配置。
团队开发,每个人使用不同的编辑器。要求一样的配置费尽口舌。
如果你在烦恼这些,.editorconfig将成为你的银弹。通过在项目根目录中添加.editorconfig文件并配置一定规则,就可以设置不同编辑器保持一致代码规范。
配置介绍
charset 文件编码
indent_style 缩进类型
indent_size 缩进数量
tab_width tab长度
insert_final_newline 是否在文件最后插入一个空行
end_of_line 换行符格式
trim_trailing_whitespace 是否删除行尾空格
max_line_length 行最大字符数
超过自动换行,仅支持atom等少数编辑器
其它更多属性查看github/editorconfig/
示例
The text was updated successfully, but these errors were encountered: