在设置中搜索json
在setting.json中添加
"editor.detectIndentation": false,
"editor.tabSize": 2, //vscode设置的缩进量
"editor.formatOnSave": false, //保存时候自动格式化,不建议设置。我在这里设置为false
setting.json参考
{
"files.associations": {
"*.html": "html"
},
"gitlens.gitCommands.skipConfirmations": [
"fetch:command",
"stash-push:command",
"switch:command",
"push:command",
"pull:menu"
],
"workbench.iconTheme": "vscode-icons",
"gitlens.advanced.fileHistoryFollowsRenames": false,
"git.autofetch": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"git.enableSmartCommit": true,
"json.schemas": [
],
"editor.detectIndentation": false,
"editor.tabSize": 2, //vscode设置的缩进量
"editor.formatOnSave": false, //保存时候自动格式化,不建议设置。我在这里设置为false
}