点击任意一个 settings.json
将下面这段代码覆盖settings.json
{ "terminal.integrated.shell.windows": "C:\Program Files\Git\bin\bash.exe", "eslint.autoFixOnSave": true, "eslint.enable": true, "eslint.options": { "extensions": [".js",".vue"] }, "eslint.validate": [ "javascript",{ "language": "vue", "autoFix": true },"html", "vue" ], "beautify.language": { "js": { "type": [ "javascript", "json" ], "filename": [ ".jshintrc", ".jsbeautify" ] }, "css": [ "css", "scss" ], "html": [ "htm", "html", "vue"//在这里加上vue ] }, "prettier.disableLanguages": [], "[vue]": { "editor.defaultFormatter": "HookyQR.beautify" }, "git.enableSmartCommit": true, "window.zoomLevel": 0, "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, "files.autoSave": "off", }