操作步骤如下:
将一下代码复制到里面保存,退出重新启动,完成操作
{ "breadcrumbs.enabled": true, // 设置全部的文件都是4个字符缩进 "editor.detectIndentation": true, // 关闭vscode自动更新提示 "update.mode": "none", // 设置在保存文件时对代码进行格式化 "editor.formatOnSave": false, // beautify的设置*****start "[javascript]": { "editor.defaultFormatter": "HookyQR.beautify" }, "[html]": { "editor.defaultFormatter": "HookyQR.beautify" }, "[css]": { "editor.defaultFormatter": "HookyQR.beautify" }, "[less]": { "editor.defaultFormatter": "HookyQR.beautify" }, "[vue]": { "editor.defaultFormatter": "HookyQR.beautify" }, "search.followSymlinks": false, "javascript.updateImportsOnFileMove.enabled": "always", "beautify.config": "", "beautify.language": { "html": [ "htm", "html", "vue" ], "js": { "type": [ "javascript", "json" ], "filename": [ ".jshintrc", ".jsbeautify" ] }, "css": [ "css", "scss", "less" ] }, "editor.fontSize": 16, "px2rem.rootFontSize": 37.5, "px2rem.isNeedNotes": false, "cssrem.rootFontSize": 24, "px2vw.toFixedNum": 3, "px2vw.width": 375, "cssrem.fixedDigits": 3, "cssrem.autoRemovePrefixZero": false, "git.ignoreWindowsGit27Warning": true, } }