VSCode Tab 设为空格
// setting.json
{
/* 默认 */
"editor.detectIndentation": false, // 不自动检测缩进
"editor.insertSpaces": true,
"editor.tabSize": 4,
/* 针对某种语言 */
"[json]": {
"editor.tabSize": 2
},
}
ref: visual studio code - How can I customize the tab-to-space conversion factor?