vscode 缩进改为2空格

 因为vscode默认启用了"editor.detectIndentation": true根据文件类型自动设置tabsize的选项。

在配置中加上
"editor.detectIndentation": false,
"editor.tabSize": 2,
原文地址:https://www.cnblogs.com/zjx304/p/9863882.html