{ // vscode默认启用了根据文件类型自动设置tabsize的选项 "editor.detectIndentation": false, // 重新设定tabsize "editor.tabSize": 2, // #每次保存的时候自动格式化 "editor.formatOnSave": true, // #去掉代码结尾的分号 "prettier.semi": false, // #使用带引号替代双引号 "prettier.singleQuote": true, // #让函数(名)和后面的括号之间加个空格 "javascript.format.insertSpaceBeforeFunctionParenthesis": true, "[javascript]": { "editor.defaultFormatter": "vscode.typescript-language-features" }, "window.zoomLevel": 0, "explorer.confirmDelete": false, "explorer.confirmDragAndDrop": false, "editor.renderControlCharacters": true, "editor.renderWhitespace": "all", "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit" }, //代码自动补全 "emmet.triggerExpansionOnTab": true, "[html]": { "editor.defaultFormatter": "vscode.html-language-features" }, "[css]": { "editor.defaultFormatter": "vscode.css-language-features" }, "[vue]": { "editor.defaultFormatter": "Vue.volar" }, "debug.allowBreakpointsEverywhere": true, "javascript.format.insertSpaceAfterConstructor": true, "git.enableSmartCommit": true, "[dart]": { "editor.defaultFormatter": "Dart-Code.dart-code" }, "security.workspace.trust.untrustedFiles": "open", "[json]": { "editor.defaultFormatter": "vscode.json-language-features" }, "eslint.validate": [], "eslint.nodeEnv": "" }
主要是
"[vue]": { "editor.defaultFormatter": "Vue.volar" },标签:false,features,vscode,defaultFormatter,editor,格式化,true From: https://www.cnblogs.com/lishuaiqi/p/18082571