forked from cdlwhm1217096231/HTML_CSS_JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.json
More file actions
179 lines (177 loc) · 5.69 KB
/
settings.json
File metadata and controls
179 lines (177 loc) · 5.69 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{
"editor.fontSize": 15,
"window.zoomLevel": 0,
"python.pythonPath": "D:\\Anaconda3\\python.exe",
// "terminal.integrated.shell.windows": "D:\\git\\Git\\bin\\bash.exe",
// "terminal.intergrated.shellArgs.windows": [
// "-l",
// "-i"
// ],
"python.linting.flake8Enabled": false,
"python.formatting.provider": "yapf",
"python.linting.flake8Args": ["--max-line-length=248"],
"python.linting.pylintEnabled": false,
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
"suppressGitVersionWarning": false,
"suppressLineUncommittedWarning": false,
"suppressNoRepositoryWarning": false,
"suppressUpdateNotice": false,
"suppressWelcomeNotice": true
},
// 开启vscode-icons主题
"workbench.iconTheme": "vscode-icons",
// 个人感觉颜色比较鲜艳的主题
"workbench.colorTheme": "One Dark Pro",
// 我在这里对自动保存设置了一个延迟
"files.autoSave": "afterDelay",
"git.confirmSync": false,
"editor.formatOnType": true,
// 在这里主要做了对vue语言的支持
"files.associations": {
"*.vue": "vue",
"*.js": "javascript",
"*.md": "markdown"
},
// 将一些不必要的搜索范围去掉
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/dist": true,
"**/.git": true
},
// 主要是设置选中范围是尖角还是圆角,没啥必要
"editor.roundedSelection": false,
// 因为有时后需要查看.git的设置,所以将.git加入显示范围
"files.exclude": {
"**/.git": false,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true
},
// 这里主要是设置emmet对于vue的支持
"emmet.syntaxProfiles": {
"vue": "html",
"vue-html": "html",
},
// 同上
"emmet.includeLanguages": {
"vue-html": "html",
"vue": "html",
"javascript": "javascriptreact"
},
// 我比较喜欢用Enter换行,所以emmet提示设置只用tab选择
"emmet.triggerExpansionOnTab": true,
// Fira Code是我最喜欢的字体,下面会介绍原因
"editor.fontFamily": "Fira Code, Menlo, Monaco, 'Courier New', monospace",
// 将行高设置高一点会显得很高大上且舒服
"editor.lineHeight": 24,
// 缩进规则,主要看公司要求和个人习惯
"[javascript]": {
"editor.insertSpaces": true,
"editor.tabSize": 4
},
// 因为我没怎么用过打开的编辑器,都是用cmd+p进行跳转。。
"explorer.openEditors.visible": 0,
// 主要是一些css代码规范的问题,禁用important
"css.lint.important": "error",
"less.lint.important": "error",
"scss.lint.important": "error",
// 设置eslint对于vue的支持
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
"vue"
],
// 我不是很喜欢小地图。。
"editor.minimap.enabled": true,
// Fira Code 支持需要开启
"editor.fontLigatures": true,
"editor.tabSize": 4,
// 对于一些比较头痛的地方禁用emmet
"emmet.excludeLanguages": [
"markdown",
"less",
"pug"
],
// 设置代码换行大小
"editor.rulers": [
80,
120
],
"todohighlight.include": [
"**/*.js",
"**/*.cpp",
"**/*.c",
"**/*.py",
"**/*.jsx",
"**/*.ts",
"**/*.tsx",
"**/*.html",
"**/*.php",
"**/*.css",
"**/*.scss",
"**/*.less",
"**/*.vue"
],
// 一个给文件加注释头的插件
"topper.headerTemplates": [
{
"defaultCStyled": {
"headerBegin": "/**",
"headerPrefix": "*",
"headerEnd": "*/",
"template": [
"${headerBegin}",
"${headerPrefix} ${fileName}",
"${headerPrefix} @author ${author}",
"${headerPrefix} @description ${description}",
"${headerPrefix} @created ${createdDate}",
"${headerPrefix} @copyright ${copyright}",
"${headerPrefix} @last-modified ${lastModifiedDate}",
"${headerEnd}"
]
}
},
{
"python": {
"headerBegin": "#",
"headerPrefix": "#",
"headerEnd": "#",
"template": [
"${headerBegin}",
"${headerPrefix} ${fileName}",
"${headerPrefix} @author ${author}",
"${headerPrefix} @description ${description}",
"${headerPrefix} @created ${createdDate}",
"${headerPrefix} @last-modified ${lastModifiedDate}",
"${headerEnd}"
]
}
}
],
"topper.customTemplateParameters": [
{
"personalProfile": {
"author": "Curry Coder",
"website": "https://github.com/cdlwhm1217096231",
"copyright": "None \n None",
"license": "None",
"email": "[email protected]"
}
},
{
"officeProfile": {
"author": "Curry Coder",
"department": "student",
"email": "[email protected]"
}
}
],
"git.autofetch": true,
"workbench.activityBar.visible": true,
}