Skip to content

Commit d0b48ac

Browse files
committed
feat(vscode配置): 为whichkey添加新的快捷键绑定
添加多个快捷键绑定以增强编辑器功能,包括: - 显示命令面板和终端 - 项目内搜索和智能选择 - 快速切换编辑器组
1 parent bf0f1da commit d0b48ac

1 file changed

Lines changed: 103 additions & 0 deletions

File tree

‎config/vscode/settings/whichkey.jsonc‎

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,33 @@
77
"name": "缓冲区...",
88
"type": "bindings",
99
"bindings": [
10+
{
11+
"key": " ",
12+
"name": "Commands",
13+
"type": "command",
14+
"command": "workbench.action.showCommands"
15+
},
16+
{
17+
"key": "\t",
18+
"name": "Last editor",
19+
"type": "commands",
20+
"commands": [
21+
"workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup",
22+
"list.select"
23+
]
24+
},
25+
{
26+
"key": "?",
27+
"name": "Search keybindings",
28+
"type": "command",
29+
"command": "whichkey.searchBindings"
30+
},
31+
{
32+
"key": ".",
33+
"name": "Repeat most recent action",
34+
"type": "command",
35+
"command": "whichkey.repeatMostRecent"
36+
},
1037
{
1138
"key": "b",
1239
"name": "列出缓冲区",
@@ -396,6 +423,82 @@
396423
"name": "切换注释",
397424
"type": "command",
398425
"command": "editor.action.commentLine"
426+
},
427+
{
428+
"key": "!",
429+
"name": "Show terminal",
430+
"type": "command",
431+
"command": "workbench.action.terminal.focus"
432+
},
433+
{
434+
"key": "/",
435+
"name": "Search in a project",
436+
"type": "command",
437+
"command": "workbench.action.findInFiles"
438+
},
439+
{
440+
"key": "*",
441+
"name": "Search in a project with a selection",
442+
"type": "commands",
443+
"commands": [
444+
"editor.action.addSelectionToNextFindMatch",
445+
"workbench.action.findInFiles"
446+
]
447+
},
448+
{
449+
"key": "v",
450+
"name": "Smart select/expand region transient",
451+
"type": "commands",
452+
"commands": ["editor.action.smartSelect.grow", "whichkey.showTransient"],
453+
"args": [null, "whichkey.transient.smartExpand"]
454+
},
455+
{
456+
"key": "1",
457+
"name": "Focus 1st editor group",
458+
"type": "command",
459+
"command": "workbench.action.focusFirstEditorGroup"
460+
},
461+
{
462+
"key": "2",
463+
"name": "Focus 2nd editor group",
464+
"type": "command",
465+
"command": "workbench.action.focusSecondEditorGroup"
466+
},
467+
{
468+
"key": "3",
469+
"name": "Focus 3rd editor group",
470+
"type": "command",
471+
"command": "workbench.action.focusThirdEditorGroup"
472+
},
473+
{
474+
"key": "4",
475+
"name": "Focus 4th editor group",
476+
"type": "command",
477+
"command": "workbench.action.focusFourthEditorGroup"
478+
},
479+
{
480+
"key": "5",
481+
"name": "Focus 5th editor group",
482+
"type": "command",
483+
"command": "workbench.action.focusFifthEditorGroup"
484+
},
485+
{
486+
"key": "6",
487+
"name": "Focus 6th editor group",
488+
"type": "command",
489+
"command": "workbench.action.focusSixthEditorGroup"
490+
},
491+
{
492+
"key": "7",
493+
"name": "Focus 7th editor group",
494+
"type": "command",
495+
"command": "workbench.action.focusSeventhEditorGroup"
496+
},
497+
{
498+
"key": "8",
499+
"name": "Focus 8th editor group",
500+
"type": "command",
501+
"command": "workbench.action.focusEighthEditorGroup"
399502
}
400503
]
401504
}

0 commit comments

Comments
 (0)