1
1
{
2
- "editor.detectIndentation" : false ,
3
- "editor.tabSize" : 2 ,
4
- "editor.formatOnSave" : true ,
5
- "editor.formatOnType" : false ,
6
- "editor.formatOnPaste" : true ,
7
- "editor.formatOnSaveMode" : " file" ,
8
- "editor.codeActionsOnSave" : {
9
- "source.fixAll.eslint" : " always"
10
- },
11
- "files.autoSave" : " onFocusChange" ,
12
- // 单引号
13
- "javascript.preferences.quoteStyle" : " single" ,
14
- "typescript.preferences.quoteStyle" : " single" ,
15
- // 去掉分号
16
- "javascript.format.semicolons" : " remove" ,
17
- "typescript.format.semicolons" : " remove" ,
18
- // 函数括号前面加空格
19
- "javascript.format.insertSpaceBeforeFunctionParenthesis" : true ,
20
- "typescript.format.insertSpaceBeforeFunctionParenthesis" : true ,
21
- // 构造函数后面加空格
22
- "typescript.format.insertSpaceAfterConstructor" : true ,
23
- "javascript.format.insertSpaceAfterConstructor" : true ,
2
+ "editor.detectIndentation" : false ,
3
+ "editor.tabSize" : 2 ,
4
+ "editor.formatOnSave" : true ,
5
+ "editor.formatOnType" : false ,
6
+ "editor.formatOnPaste" : true ,
7
+ "editor.formatOnSaveMode" : " file" ,
8
+ "editor.codeActionsOnSave" : {
9
+ "source.fixAll.eslint" : " always"
10
+ },
11
+ "files.autoSave" : " onFocusChange" ,
12
+ // 单引号
13
+ "javascript.preferences.quoteStyle" : " single" ,
14
+ "typescript.preferences.quoteStyle" : " single" ,
15
+ // 去掉分号
16
+ "javascript.format.semicolons" : " remove" ,
17
+ "typescript.format.semicolons" : " remove" ,
18
+ // 函数括号前面加空格
19
+ "javascript.format.insertSpaceBeforeFunctionParenthesis" : true ,
20
+ "typescript.format.insertSpaceBeforeFunctionParenthesis" : true ,
21
+ // 构造函数后面加空格
22
+ "typescript.format.insertSpaceAfterConstructor" : true ,
23
+ "javascript.format.insertSpaceAfterConstructor" : true ,
24
+ "vetur.format.defaultFormatter.html" : " js-beautify-html" ,
25
+ "vetur.format.defaultFormatter.js" : " prettier" ,
26
+ "vetur.format.defaultFormatterOptions" : {
27
+ "js-beautify-html" : {
28
+ "wrap_attributes" : " force-aligned"
29
+ }
30
+ },
31
+ "vetur.validation.template" : true ,
32
+ "vetur.validation.script" : true ,
33
+ "vetur.validation.style" : true
24
34
}
0 commit comments