-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetting.json
312 lines (312 loc) · 8.43 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
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
{
// 标题栏的一些快捷图标
"workbench.layoutControl.enabled": false,
"workbench.startupEditor": "none",
"window.zoomLevel": 1,
// "workbench.colorTheme": "Everforest Dark",
// "workbench.iconTheme": "material-icon-theme",
// "everforest.italicKeywords": true,
"workbench.colorTheme": "Catppuccin Mocha",
"workbench.iconTheme": "catppuccin-mocha",
"editor.cursorSmoothCaretAnimation": "on",
"workbench.settings.editor": "json",
"zenMode.hideLineNumbers": false,
"security.workspace.trust.untrustedFiles": "open",
"editor.cursorSurroundingLines": 5,
"editor.fontFamily": "CaskaydiaCove Nerd Font",
"editor.fontLigatures": true,
"editor.fontSize": 18,
"editor.fontWeight": "300",
"editor.formatOnSave": true,
"editor.inlineSuggest.enabled": true,
"editor.lineNumbers": "relative",
"editor.linkedEditing": true,
"editor.minimap.enabled": false,
"editor.smoothScrolling": true,
"editor.stickyScroll.enabled": true,
"editor.suggest.insertMode": "replace",
"editor.suggestFontSize": 14,
"editor.wordWrap": "on",
"git.enableSmartCommit": true,
"git.confirmSync": false,
// 光标的动画效果
"editor.cursorBlinking": "solid",
"editor.cursorStyle": "line",
// 自动检测缩进的宽度
"editor.detectItdentation": false,
// 只背景高亮当前行,但是不高亮行号
"editor.renderLineHighlight": "line",
// 高亮当前光标所在的单词以及同名的单词
"editor.occurrencesHighlight": "singleFile",
// 高亮选中内容
"editor.selectionHighlight": true,
// "editor.wordHighlight": true,
// "editor.wordHighlightStrong": true,
"workbench.colorCustomizations": {
"editor.selectionHighlightBackground": "#FFA72640", // 设置选中单词背景颜色
"editor.selectionHighlightBorder": "#FFA726", // 设置选中单词边框颜色
"editor.wordHighlightBackground": "#80D8FF40", // 相同词轻量高亮
"editor.wordHighlightStrongBackground": "#00ACC140" // 当前单词强高亮
},
// "errorLens.fontStyleItalic": true,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"extensions.autoUpdate": "onlyEnabledExtensions",
"extensions.ignoreRecommendations": false,
"files.exclude": {
"**/node_modules": true
},
"projectManager.git.baseFolders": [
"$home/codetree/repo/"
],
"projectManager.sortList": "Recent",
"typescript.preferences.importModuleSpecifier": "relative",
"typescript.updateImportsOnFileMove.enabled": "always",
"update.showReleaseNotes": false,
// "vim.enableNeovim": true,
"vim.foldfix": true,
"vim.startInInsertMode": true,
"vim.highlightedyank.color": "rgba(230, 97, 89, 0.7)",
"vim.highlightedyank.enable": true,
"vim.highlightedyank.textColor": "white",
"vim.hlsearch": true,
"vim.leader": "<space>",
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [
"leader",
"r"
],
"commands": [
"editor.action.rename"
]
},
{
"before": [
"leader",
"w"
],
"commands": [
":w!"
]
},
{
"before": [
"leader",
"q"
],
"commands": [
":q!"
]
},
{
"before": [
"leader",
"x"
],
"commands": [
":x!"
]
},
{
"after": [
"g",
"g",
"V",
"G"
],
"before": [
"<c-a>"
]
},
{
"before": [
"<leader>",
"k"
],
"commands": [
"editor.action.showHover"
]
},
{
"before": [
"[",
"d"
],
"commands": [
"editor.action.marker.prev"
]
},
{
"before": [
"]",
"d"
],
"commands": [
"editor.action.marker.next"
]
},
{
"before": [
"<leader>",
"c",
"a"
],
"commands": [
"editor.action.quickFix"
]
},
{
"before": [
"leader",
"i"
],
"commands": [
"extension.toggleBool"
]
},
// 格式化代码
{
"before": [
"leader",
"f",
"t"
],
"commands": [
{
"command": "editor.action.formatDocument"
}
]
},
// 只有在当前文件是在左边的 explorer 中时才有效
{
"before": [
"leader",
"f"
],
"commands": [
{
"command": "revealInExplorer"
}
]
},
{
"before": [
"leader",
"h"
],
"commands": [
":noh"
]
},
// {
// "before": [
// "leader",
// "c"
// ],
// "commands": [
// {
// "command": "workbench.action.closeEditorInAllGroups"
// }
// ]
// },
// {
// "before": [
// "leader",
// "c",
// ],
// "commands": [
// {
// "command": "workbench.action.closeActiveEditor"
// }
// ]
// },
//ctrl+p
// {
// "before": [
// "leader",
// "g",
// "g"
// ],
// "commands": [
// {
// "command": "workbench.action.quickOpen"
// }
// ]
// },
{
"before": [
"leader",
"g",
"f"
],
"commands": [
{
"command": "workbench.view.search"
}
]
},
{
"before": [
"<C-v>"
],
"commands": [
{
"command": "extension.vim_cmd+v"
}
]
},
{
"before": [
"K"
],
"commands": [
"lineBreakInsert"
],
"silent": true
}
],
"vim.insertModeKeyBindingsNonRecursive": [
{
"before": [
"j",
"j"
],
"after": [
"<Esc>"
]
}
],
"vim.useSystemClipboard": true,
// 开启 vim-surround
"vim.surround": true,
// vim settings
"vim.easymotion": true,
"vim.incsearch": true,
"vim.useCtrlKeys": true,
//确保 Ctrl+C 的行为不被 Vim 模式干扰
//ctrl+w 是关闭tab标签页 ctrl+f是查找 ctrl+p 是文件查找
"vim.handleKeys": {
"<C-a>": false,
"<C-f>": false,
"<C-p>": false,
"<C-w>": false,
"<C-c>": false,
"<C-v>": false,
"<C-z>": false,
"<C-s>": false,
"<C-x>": false
},
"workbench.editor.enablePreview": false, // 禁用预览模式,防止文件被替换
"workbench.editor.enablePreviewFromQuickOpen": false, // 快速打开时也禁用预览
// vim 的 easymotion 插件的高亮字符的前景色
"vim.easymotionMarkerForegroundColorOneChar": "#DF5452",
// 代码区域的竖直和水平的高亮条显示
"editor.guides.bracketPairs": true,
"editor.guides.bracketPairsHorizontal": false,
"editor.bracketPairColorization.enabled": true,
// 渲染 white space
"editor.renderWhitespace": "all",
// 标签栏的 close 图标的可见性
"workbench.editor.tabActionCloseVisibility": true,
}