前言
使用hbuilder开发vue网站项目,默认的空格位是2个字符。阅读不是很明朗。因此想要将为改为四个字符。
实现方法
更改项目根目录下的 .editorconfig 文件,将 indent_size = 2 改成 indent_size = 4。
实现代码
# http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false