From 740f14d0b8becfe1ba5652ac67742def62ca881b Mon Sep 17 00:00:00 2001 From: colin Date: Fri, 8 May 2020 00:01:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'settings.json'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.json | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 + }, }