微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

vscode配置,vue开发环境

安装插件Vetur,Regex Previewer,Pretty Formatter,Path Intellisense,ESLint,chinese,beautify //setting.js文件 {     "emmet.triggerExpansionOnTab": true,     "emmet.includeLanguages": {         "vue-html": "html",         "vue": "html"     },     "eslint.codeAction.showDocumentation": {         "enable": true     },     "editor.tabSize": 2,     //失去焦点后自动保存     "files.autoSave": "onFocusChange",     // #值设置为true时,每次保存的时候自动格式化;     "editor.formatOnSave": true,     "editor.formatOnType": true,     //每120行就显示一条线     "editor.rulers": [],     "eslint.options": {         "plugins": [             "html"         ]     },     "[javascript]": {         "editor.defaultFormatter": "vscode.typescript-language-features"     },     "emmet.excludeLanguages": [         "markdown"     ],     "typescript.validate.enable": false,     "vetur.format.defaultFormatterOptions": {         "js-beautify-html": {             "wrap_line_length": 160, // 数值越大,一行放的属性越多             "wrap_attributes": "auto",             "end_with_newline": false         },         "prettyhtml": {             "printWidth": 100,             "singleQuote": false,             "wrapAttributes": false,             "sortAttributes": false         }     },     "vetur.format.defaultFormatter.html": "js-beautify-html",     "vetur.format.defaultFormatter.js": "vscode-typescript",     "editor.quickSuggestions": true,     "eslint.nodeenv": "",     "editor.fontSize": 16,     "javascript.format.insertSpaceBeforeFunctionParenthesis": true,     "js/ts.implicitProjectConfig.checkJs": true,     "typescript.format.insertSpaceBeforeAndAfterBinaryOperators": false,     "typescript.format.insertSpaceBeforeFunctionParenthesis": true,     "path-intellisense.mappings": {         "@": "${workspaceRoot}/src"     },     "editor.codeActionsOnSave": null     // "npm.exclude": "",     // "[scss]": {     //     "editor.defaultFormatter": "HookyQR.beautify"     // },     // "beautify.config": "" }

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐