Angular小博客
分享让你更聪明
angular项目的根目录有个.editorconfig文件打开它,差不多如下
# Editor configuration, see https://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2 // 修改这里
insert_final_newline = true
trim_trailing_whitespace = true
[*.ts]
quote_type = single
[*.md]
max_line_length = off
trim_trailing_whitespace = false
然后修改indent_size后面的数字就可以了