- 下载插件
Eslint Prettier - Code formatter Vetur - setting.json
{
"workbench.iconTheme": "vscode-icons",
"workbench.colorTheme": "Default Dark+",
"editor.minimap.enabled": false,
"files.autoSave": "afterDelay",
"window.zoomLevel": 1,
"editor.fontLigatures": false,
"editor.wordWrapColumn": 100,
"breadcrumbs.enabled": true,
"editor.detectIndentation": false,
"editor.tabSize": 2,
"editor.formatOnSave": true,
"prettier.semi": false,
"prettier.singleQuote": true,
"vetur.format.defaultFormatter.html": "prettyhtml",
"editor.renderControlCharacters": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
"vue"
],
"vetur.format.defaultFormatterOptions": {
"prettier": {
"singleQuote": true,
"semi": false
}
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
|