diff --git a/settings.json b/settings.json index ca434e2..59ef3b0 100644 --- a/settings.json +++ b/settings.json @@ -99,5 +99,16 @@ ] }, "json.maxItemsComputed": 50000, + + "javascript.format.insertSpaceBeforeFunctionParenthesis": true, //让函数(名)和后面的括号之间加个空格 + "vetur.format.defaultFormatter.html": "js-beautify-html", //格式化.vue中html + "vetur.format.defaultFormatterOptions": { + "js-beautify-html": { + "wrap_attributes": "force-aligned" //属性强制折行对齐 + } + }, + "editor.codeActionsOnSave": { + "source.fixAll.eslint": true + }, }