EditorConfig 编码规范配置

# EditorConfig is awesome: http://EditorConfig.org
#
# root                      表明是最顶层的配置文件,发现设为 true 时,EditorConfig 插件才会停止查找 .editorconfig 文件
# indent_style              缩进使用 tab 或者 space
# indent_size               缩进为 space 时,缩进的字符数
# tab_width                 缩进为 tab 时,缩进的宽度
# end_of_line               换行符的类型。lf, cr, crlf三种
# charset                   文件的 charset。有以下几种类型:latin1, utf-8, utf-8-bom, utf-16be, utf-16le
# trim_trailing_whitespace  是否自动删除行尾空格(true:是,false:否)
# insert_final_newline      文件是否使以空白行结尾(true:是,false:否)

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
indent_style = space
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.php]
indent_size = 4

[*.{js,scss}]
indent_size = 2

[*.md]
trim_trailing_whitespace = false
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容