因为vscode默认启用了"editor.detectIndentation": true”根据文件类型自动设置tabsize的选项。
在配置中加上
“editor.detectIndentation”: false,
“editor.tabSize”: 2,
然后
因为vscode默认启用了"editor.detectIndentation": true”根据文件类型自动设置tabsize的选项。
在配置中加上
“editor.detectIndentation”: false,
“editor.tabSize”: 2,
然后