Repository navigation
Expand file tree
/
Copy pathsettings.json
More file actions
573 lines (570 loc) · 16.3 KB
/
Copy pathsettings.json
File metadata and controls
573 lines (570 loc) · 16.3 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
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
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
{
"workbench.colorTheme": "Visual Studio Dark",
"remote.SSH.remotePlatform": {
"3090": "linux",
"connect.nma1.seetacloud.com": "linux",
"A6000": "linux",
"connect.westc.gpuhub.com": "linux"
},
"explorer.autoReveal": false,
"terminal.integrated.cursorStyleInactive": "block",
"notebook.lineNumbers": "on",
"workbench.editor.enablePreview": false,
"github.copilot.enable": {
"plaintext": true,
"markdown": true,
"scminput": true
},
"github.copilot.nextEditSuggestions.enabled": true,
"security.workspace.trust.untrustedFiles": "open", // 第一次打开文件夹时,选择是否信任
"editor.formatOnSave": false, // 编辑器保存代码时是否自动格式化
"vim.useSystemClipboard": true, // Vim 是否使用系统剪贴板
"explorer.confirmDragAndDrop": false, // 拖放文件或文件夹至目标位置时,是否需要确认
"explorer.confirmDelete": false, // 删除文件或文件夹时是否需要确认
// "editor.fontFamily": "'CaskaydiaCove NF Mono', 'Cascadia Mono', 'Source Han Sans CN', '微软雅黑', Consolas, 'Courier New', monospace",
"editor.fontFamily": "'CaskaydiaCove Nerd Font', 'Cascadia Mono', 'Source Han Sans CN', '微软雅黑', Consolas, 'Courier New', monospace", // 编译器字体
"editor.fontSize": 13, // 字体大小
"editor.fontLigatures": false, // 连体效果
"workbench.startupEditor": "none", // 启动时不打开任何编辑器窗口,仅显示空白工作区。
"git.enableSmartCommit": true, // 是否启用智能提交:true提交操作会自动暂存所有更改并提交,false仅提交已暂存文件
"git.confirmSync": false, // 同步操作时是否需要确认
// "python.formatting.autopep8Args": [
// "--ignore",
// "E402"
// ],
// "python.analysis.diagnosticSeverityOverrides": {
// "reportUnsupportedDunderAll": "none"
// }, // 自定义特定类型诊断(错误/警告)的严重程度
// c++ 格式化设置
// BasedOnStyle: Google表示以Google的C++代码风格为基础
// IndentWidth强制用4空格缩进
// ColumnLimit: 260放宽行长度限制为260个字符
"C_Cpp.clang_format_style": "{BasedOnStyle: Google, IndentWidth: 4, ColumnLimit: 260}",
// html的默认风格以及tab大小
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features",
"editor.tabSize": 2
},
// 控制哪些语言环境的Unicode字符不会被标记为“非基本ASCII字符”,即不会显示高亮或警告
"editor.unicodeHighlight.allowedLocales": {
"zh-hans": true, // 允许简体中文Unicode字符
"zh-hant": true // 允许繁体中文Unicode字符
},
// 手动指定文件拓展名或文件名与语言模式的关联
"files.associations": {
".clangd": "yaml", // 将.clangd文件视为yaml文件
".clang-format": "yaml", // 将.clang-format文件视为yaml文件
".manifest": "xml" // 将.manifest文件视为xml文件
},
// markdown 的自动补全
"[markdown]": {
"editor.quickSuggestions": {
"other": "on", // 普通代码环境
"comments": "on", // 注释内容
"strings": "on" // 字符串内容
}
},
"[yaml]": {
"editor.indentSize": 2, // 缩进大小
},
// "[ahk]": {
// "files.encoding": "utf8bom",
// "editor.quickSuggestions": {
// "other": "on",
// "comments": "on",
// "strings": "on"
// }
// },
// 光标的动画效果
"editor.cursorBlinking": "solid",
"editor.cursorSmoothCaretAnimation": "on",
"terminal.integrated.defaultProfile.windows": "Command Prompt", // 设置默认终端为命令提示符
"terminal.integrated.fontFamily": "'CaskaydiaCove Nerd Font', 'Cascadia Mono', 'Source Han Sans CN', '微软雅黑', Consolas, 'Courier New', monospace",
"markdown.preview.fontFamily": "CaskaydiaCove NF Mono, -apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif",
"editor.detectIndentation": false, // 是否自动检测缩进宽度
// language specification
"[typescript]": {
"editor.tabSize": 2,
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[css]": {
"editor.tabSize": 2,
// "editor.defaultFormatter": "stylelint.vscode-stylelint"
"editor.defaultFormatter": "vscode.css-language-features"
},
"[jsonc]": {
"editor.tabSize": 2,
"editor.indentSize": 2,
"editor.defaultFormatter": "vscode.json-language-features"
},
"[json]": {
"editor.tabSize": 2,
"editor.indentSize": 2,
"editor.defaultFormatter": "vscode.json-language-features",
},
"[lua]": {
"editor.tabSize": 2
},
"[javascriptreact]": {
"editor.tabSize": 2
},
"[scss]": {
"editor.tabSize": 2
},
"[java]": {
"editor.tabSize": 2
},
"[vue]": {
"editor.tabSize": 2
},
"editor.wordWrap": "on", // 控制文本换行行为,on:当一行文本超出编辑器可视区域时,自动将超出部分折行显示(视觉上多行显示,实际是单行内容)
"python.terminal.executeInFileDir": true,
"terminal.integrated.bellDuration": 100000,
"editor.unicodeHighlight.invisibleCharacters": false,
"editor.unicodeHighlight.allowedCharacters": {
"〇": true
},
"workbench.colorCustomizations": {
// "editorCursor.foreground": "#16C60C",
"editorCursor.foreground": "#ffb6c1",
"editor.lineHighlightBackground": "#292e42",
// 状态栏颜色设置
"statusBar.background": "#1e1e1e",
"statusBar.foreground": "#9b9b8f",
"statusBar.border": "#333a48"
},
"editor.minimap.autohide": true,
"editor.minimap.showSlider": "mouseover",
"editor.minimap.size": "fit",
"editor.minimap.maxColumn": 180,
"editor.hideCursorInOverviewRuler": true,
"editor.scrollbar.horizontal": "visible",
"editor.scrollbar.vertical": "visible",
"editor.scrollbar.verticalScrollbarSize": 0,
"workbench.layoutControl.enabled": true,
"editor.renderLineHighlight": "line",
"editor.occurrencesHighlight": "off",
"editor.selectionHighlight": false,
// vim settings
"vim.easymotion": true,
"vim.incsearch": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,
"vim.leader": "<space>",
"vim.handleKeys": {
"<C-a>": false,
"<C-f>": false,
"<C-p>": false,
"<C-w>": false,
"<C-c>": false,
"<C-x>": false,
},
"vim.normalModeKeyBindings": [
{
"before": [
"leader",
"e"
],
"commands": [
{
"command": "workbench.action.toggleSidebarVisibility"
}
]
},
// run cmake project
{
"before": [
"leader",
"r",
"c"
],
"commands": [
{
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "clear \u000D"
}
},
{
"command": "cmake.launchTarget"
}
]
},
{
"before": [
"leader",
"l",
"f"
],
"commands": [
// {
// "command": "workbench.action.terminal.sendSequence",
// "args": {
// "text": "clear \u000D"
// }
// },
{
"command": "editor.action.formatDocument"
}
]
},
{
"before": [
"leader",
"f"
],
"commands": [
{
"command": "revealInExplorer"
}
]
},
{
"before": [
"leader",
"h"
],
"commands": [
":noh"
]
},
{
"before": [
"leader",
"c"
],
"commands": [
":q"
]
},
// 保存,但不格式化
{
"before": [
"leader",
"w"
],
"commands": [
"workbench.action.files.saveWithoutFormatting"
]
},
// 这个保存并格式化可以用 :w 来代替
// {
// "before": [
// "leader",
// "q"
// ],
// "commands": [
// ":w"
// ]
// },
{
"before": [
"leader",
"a"
],
"commands": [
{
"command": "workbench.action.toggleActivityBarVisibility"
}
]
},
{
"before": [
"leader",
"b"
],
"commands": [
{
"command": "workbench.action.toggleStatusbarVisibility"
}
]
},
{
"before": [
"leader",
"p",
"y"
],
"commands": [
"workbench.action.files.saveAll",
{
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "clear \u000D"
}
},
"workbench.action.terminal.focus",
{
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "python '${file}'\u000D"
}
},
"workbench.action.focusActiveEditorGroup"
]
},
// leader + tf => toggle terminal
{
"before": [
"leader",
"t",
"h"
],
"commands": [
"workbench.action.terminal.toggleTerminal",
]
},
{
"before": [
"leader",
"r",
"u"
],
"commands": [
"workbench.action.files.saveAll",
{
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "clear \u000D"
}
},
"workbench.action.terminal.focus",
{
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "ruby '${file}'\u000D"
}
},
"workbench.action.focusActiveEditorGroup"
]
},
// autohotkey
{
"before": [
"leader",
"k",
"k"
],
"commands": [
"workbench.action.files.saveAll",
{
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "clear \u000D"
}
},
"workbench.action.terminal.focus",
{
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "${file} \u000D"
}
},
"workbench.action.focusActiveEditorGroup"
]
},
// 在 terminal 中执行 haskell 程序
{
"before": [
"leader",
"r",
"h"
],
"commands": [
"workbench.action.files.saveAll",
{
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "clear \u000D"
}
},
"workbench.action.terminal.focus",
{
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "runhaskell ${file} \u000D"
}
},
"workbench.action.focusActiveEditorGroup"
]
},
{
"before": [
"leader",
"g",
"g"
],
"commands": [
{
"command": "workbench.action.quickOpen"
}
]
},
{
"before": [
"leader",
"g",
"f"
],
"commands": [
{
"command": "workbench.view.search"
}
]
},
// run java codes
{
"before": [
"leader",
"j",
"a"
],
"commands": [
{
"command": "java.debug.runJavaFile"
}
]
},
{
"before": [
"leader",
"r"
],
"commands": [
{
"command": "workbench.action.debug.start"
}
]
}
// {
// "key": "ctrl+f5",
// "command": "workbench.action.debug.run",
// "when": "debuggersAvailable && debugState != 'initializing'"
// },
],
"vim.visualModeKeyBindings": [
{
"before": [
">"
],
"commands": [
"editor.action.indentLines"
]
},
{
"before": [
"<"
],
"commands": [
"editor.action.outdentLines"
]
},
{
"before": ["j", "j"],
"after": ["<Esc>"]
},
{
"before": ["J", "J"],
"after": ["<Esc>"]
}
],
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [
"u"
],
"commands": [
"undo"
]
},
{
"before": [
"C-r"
],
"commands": [
"redo"
]
},
{
"before": [
"leader",
"v"
],
"commands": [
"scrollPageDown"
]
},
],
"vim.insertModeKeyBindings": [
{
"before": ["j", "j"],
"after": ["<Esc>"]
},
{
"before": ["J", "J"],
"after": ["<Esc>"]
}
],
// vim 的 easymotion 插件的高亮字符的前景色
"vim.easymotionMarkerForegroundColorOneChar": "#DF5452",
// 关闭 snippet 的阻止快速建议的行为
"editor.suggest.snippetsPreventQuickSuggestions": false,
"editor.guides.bracketPairsHorizontal": false,
// 开启 vim-surround
"vim.surround": true,
// 扩展忽视建议
"extensions.ignoreRecommendations": true,
// cmake 配置
"cmake.configureOnOpen": false,
// 编辑器内联的建议
"editor.inlineSuggest.enabled": true,
// 关闭 terminal 中的多行粘贴的警告
"terminal.integrated.enableMultiLinePasteWarning": "never",
// 窗口的缩放程度
"window.zoomLevel": 0.6,
// 关闭不明 unicode 字符的高亮
"editor.unicodeHighlight.ambiguousCharacters": false,
"css.validate": false,
"less.validate": false,
"scss.validate": false,
"editor.renderWhitespace": "all",
"maven.executable.path": "C:\\FDisk\\Maven\\apache-maven-3.9.4\\bin\\mvn",
"java.configuration.maven.globalSettings": "C:\\FDisk\\Maven\\apache-maven-3.9.4\\conf\\settings.xml",
"workbench.editor.tabActionCloseVisibility": true,
"cmake.showOptionsMovedNotification": false,
"window.menuBarVisibility": "visible",
// 修改窗口的风格为 vscode 自绘样式
"window.titleBarStyle": "custom",
"window.commandCenter": false,
"editor.stickyScroll.enabled": false,
// IME
"editor.experimentalEditContextEnabled": true,
"cmake.pinnedCommands": [
"workbench.action.tasks.configureTaskRunner",
"workbench.action.tasks.runTask"
],
"vscode_custom_css.imports": [
"file:///C:/Users/SonnyCalcr/EDisk/CSSCodes/custom.css"
],
// for neovim performance
"extensions.experimental.affinity": {
"asvetliakov.vscode-neovim": 1
},
"cmake.automaticReconfigure": false,
"cmake.configureOnEdit": false,
// "editor.snippetSuggestions": "top",
// set qt installation root path for QT plugins
"qt-core.qtInstallationRoot": "C:\\Qt",
"editor.inlayHints.enabled": "off",
"git.openRepositoryInParentFolders": "never",
"diffEditor.ignoreTrimWhitespace": true,
"[snippets]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"explorer.confirmPasteNative": false,
"codeium.enableConfig": {
"markdown": true,
"*": true
},
"codeium.enableCodeLens": false
}