在设置中搜索json
添加到setting.json
' editor.detect indentation ' : false,' editor.tabSize': 2,//vscode设置缩进量' editor.formatonsave ' : fabsize
{ ' files.associations ' : } ' *.html ' : ' html ' },' git lens.git commands.skip confirmations ' 3360 [ ] ' pull:menu' ] ',' work bench.icon theme ' 3360 ' vs code-icons ',' git lens.advanced.filehistoryfolllowsrenames ' ' JavaScript.updateimportsonse ' git.enablesmartcommit ' : true,' json.schemas': [ ],' editor.detect indend