settings.json
2.33 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
// 使用 Prettier 作为默认格式化器
"editor.defaultFormatter": "esbenp.prettier-vscode",
// 保存时自动格式化
"editor.formatOnSave": true,
// 缩进设置:使用 tab,大小为 4
"editor.tabSize": 2,
"editor.insertSpaces": false,
"editor.detectIndentation": false,
"explorer.compactFolders": false,
"scm.compactFolders": false,
"problems.decorations.enabled": false,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[wxml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[wxss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[sass]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[wxs]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.associations": {
"*.wxss": "css",
},
"cSpell.words": [
// 微信小程序相关
"scrolltolower",
"wxml",
"wxss",
"wxs",
"elif",
"miniprogram",
"usingComponents",
"behaviours",
"onLaunch",
"onShow",
"onHide",
"onLoad",
"onUnload",
"onReady",
"onPullDownRefresh",
"onReachBottom",
"onShareAppMessage",
"setData",
"globalData",
// 项目相关
"glsk",
"glsx",
"dayjs",
"rfdc",
"ucharts",
"vant",
"vanui",
// 业务相关
"artificer",
"boutique",
"crowdfunding",
"technician",
"subvehicle",
"tabbar",
"tabDate",
"tabIndex",
"tabMine",
"tabOperating",
"tabRepairOrder",
"tabWorkOrder",
// 常用英文词汇
"mixins",
"utils",
"jsconfig",
"sitemap",
"unpkg",
"qrcode",
"qrbox",
"popup",
"popups",
"navbar",
"readonly",
"textarea",
// API/接口相关
"errId",
"sessionId",
"moduleType",
"moduleTypes",
"businessType",
"unread",
"pageNum",
"pageSize",
// 中文拼音
"yanbao",
"jingpin",
"quanyi"
],
// GitLens Blame 配置
"gitlens.codeLens.enabled": true,
"gitlens.codeLens.recentChange.enabled": true,
"gitlens.currentLineBlame": true,
"gitlens.currentLineBlame.format": "${author}, ${date} - ${message}",
"gitlens.blame.visibility": "on",
// 待团队讨论后再开启
"prettier.enable": true
}