VSCode 编辑器设置
插件引荐[PS: 其他须要能够本身装置]
- Auto Close Tag
- Auto Rename Tag
- Beautify css/sass/scss/less
- ESLint
- open in browser
- Path intellisense
- SVG Viewer
- Vetur
- vscode-icons
- Javascript (ES6) code snippets
- Vue 2 Snippets
- Chinese (Simplified) Language Pack for Visual Studio Code
编辑器设置
- 翻开文件/code
- 挑选首选项
- 挑选设置
- 在User Settings 中到场以下代码
"eslint.autoFixOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "html",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
}
]
详细规则可参考ESLint官方网站