VScode之setting.json文件——vue3插件之Vue Language Features (Volar) & 格式化插件之ESLint
VScode之setting.json文件——vue3插件之Vue Language Features (Volar) & 格式化插件之ESLintvue3插件——Vue Language Features (Volar)格式化插件——ESLint设置-打开设置{"editor.fontSize": 16,"[html]": {"editor.defaultFormatter": "Hoo
·
VScode之setting.json文件——vue3插件之Vue Language Features (Volar) & 格式化插件之ESLint
vue3插件——Vue Language Features (Volar)
格式化插件——ESLint
设置-打开设置
{
"editor.fontSize": 16,
"[html]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"liveServer.settings.host": "192.168.43.180",
"editor.mouseWheelZoom": true,
"window.zoomLevel": 0,
"editor.renderIndentGuides": false,
"typescript.tsdk": "",
// "editor.codeActionsOnSave": null,
"launch": {
"configurations": [],
"compounds": []
},
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"explorer.confirmDelete": false,
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"workbench.iconTheme": "material-icon-theme",
"terminal.integrated.tabs.enabled": false,
"easysass.formats": [
{
"format": "expanded",
"extension": ".css"
},
{
"format": "compressed",
"extension": ".min.css"
}
],
"gitlens.codeLens.scopes": [
"document",
"containers",
"blocks"
],
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_line_length": 240,
"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",
"typescript.locale": "zh-CN",
// #每次保存的时候将代码按eslint格式进行修复
"eslint.autoFixOnSave": true,
"eslint.options": {
"configFile": "./.eslintrc.js",
"extensions": [
"html",
".js",
".vue"
]
},
"eslint.validate": [
"javascript",
// 添加 vue 支持
{
"language": "vue",
"autoFix": true
},
// 添加 html 支持
{
"language": "html",
"autoFix": true
}
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
}
更多推荐
已为社区贡献67条内容
所有评论(0)