.js文件
插件:JavaScript Standard Style
配置:解決ES6語法格式化javascript
{ "files.associations": { "*.js": "javascriptreact" } }
.vue文件html
配置:vue
{ "vetur.format.defaultFormatter.js": "vscode-typescript", "javascript.format.insertSpaceBeforeFunctionParenthesis": true, "editor.quickSuggestions": { "strings": true }, "editor.tabSize": 2, "eslint.validate": [ "javascript", "javascriptreact", "html", "vue", { "language": "html", "autoFix": true } ], "tslint.autoFixOnSave": true, }
.html文件java
配置:react
{ "editor.tabSize": 2, "eslint.autoFixOnSave": true, "eslint.validate": [ "javascript", "javascriptreact", { "language": "html", "autoFix": true }, { "language": "vue", "autoFix": true } ] }