-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetting.json
81 lines (81 loc) · 2.75 KB
/
setting.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
// tab 大小为2个空格
"editor.tabSize": 2,
// 100 列后换行
"editor.wordWrapColumn": 100,
// 保存时格式化
"editor.formatOnSave": false,
// 开启 vscode 文件路径导航
"breadcrumbs.enabled": true,
/*这里是prettier的设置*/
// "prettier.arrowParens": "avoid", // (x) => {} 箭头函数参数只有一个时是否要有小括号。avoid:省略括号
// "prettier.tabWidth": 2, // 缩进字节数
// "prettier.useTabs": true, // 缩进是否使用tab
// "prettier.semi": false, // 句末是否加分号
// "prettier.singleQuote": true, // 设置结尾是单引号
// "prettier.bracketSpacing": true, //让prettier使用eslint的代码格式进行校验
// "prettier.jsxBracketSameLine": false, // 在jsx中把'>' 是否单独放一行
// "prettier.jsxSingleQuote": false, // 在jsx中使用单引号代替双引号
// "prettier.trailingComma": "all", // 在对象或数组最后一个元素后面是否加逗号
// "prettier.printWidth": 120, // 120 个字符后折行
// "prettier.arrayExpand": true, // 数组展开
// "prettier.spaceBeforeFunctionParen": false, // 函数括号前始终插入空格
// "prettier.eslintIntegration": true,
// 选择 vue 文件中 template 的格式化工具
"vetur.format.defaultFormatter.html": "prettyhtml",
// 显示 markdown 中英文切换时产生的特殊字符
"editor.renderControlCharacters": true,
// 设置 eslint 保存时自动修复
"eslint.autoFixOnSave": true,
// eslint 检测文件类型
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "html",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
}
],
// 引用eslint配置文件
// "eslint.options": {
// "configFile": "/Users/chenjunjia/configFile/eslint/.eslintrc.js"
// },
// vetur 的自定义设置
"vetur.format.defaultFormatterOptions": {
"prettier": {
"singleQuote": true,
"semi": false
}
},
// JS用哪个工具进行格式化
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
},
/* Standard的配置 */
"javascript.validate.enable": false,
"explorer.confirmDelete": false,
"editor.quickSuggestions": {
"strings": true
},
"javascript.preferences.quoteStyle": "single",
"typescript.preferences.quoteStyle": "single",
"element-helper.quotes": "single",
"editor.codeActionsOnSave": {
// For ESLint
"source.fixAll.eslint": true,
// For TSLint
"source.fixAll.tslint": true
},
"files.eol": "\n",
"editor.detectIndentation": false,
"javascript.updateImportsOnFileMove.enabled": "never",
"[html]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"workbench.iconTheme": "material-icon-theme",
"javascript.format.enable": false
}