vscode most simple and practical default configuration items
eslint, prettier, winter
setting.json file
{ "workbench.iconTheme": "vscode-icons", "files.autoSave": "afterDelay", "liveServer.settings.CustomBrowser": "chrome", "editor.formatOnSave": true, "html.format.indentInnerHtml": true, "html.format.indentHandlebars": true, "eslint.format.enable": true, "prettier.requirePragma": true, "[vue]": { "editor.defaultFormatter": "octref.vetur" }, // semicolon "prettier.semi": to false , // single quotes wrapping string "prettier.singleQuote": to true , // HTML format dependent default none "vetur.format.defaultFormatter.html": "JS-the Beautify -html " , // before the function spaces // " javascript.format.insertSpaceBeforeFunctionParenthesis ": to true, // not below the top does not take effect " vetur.format.defaultFormatter.js ":" VSCode-the typescript " , }
Automatic save automatically formatted code format check eslint