-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkb.json
140 lines (140 loc) · 3.66 KB
/
kb.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
// 将键绑定放入此文件中以覆盖默认值
[
{
// 新建文件
"key": "ctrl+numpad7",
"command": "explorer.newFile"
},
{
// 移动行上
"key": "alt+down",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
// 移动行下
"key": "alt+up",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
// 光标返回上次编辑位置
"key": "ctrl+u",
"command": "cursorUndo",
"when": "editorTextFocus"
},
{
// 删除光标右边的代码(当前行)
"key": "ctrl+delete",
"command": "deleteWordRight",
"when": "editorTextFocus && !editorReadonly"
},
{
// 代码格式化
"key": "ctrl+shift+l",
"command": "editor.action.formatDocument",
"when": "editorTextFocus && !editorReadonly"
},
{
// 多行注释
"key": "ctrl+shift+/",
"command": "editor.action.blockComment",
"when": "editorTextFocus"
},
{
// 删除代码
"key": "ctrl+d",
"command": "editor.action.deleteLines",
"when": "editorTextFocus && !editorReadonly"
},
{
// 替换
"key": "ctrl+r",
"command": "editor.action.startFindReplaceAction"
},
{
// 选中全部查找的内容
"key": "alt+enter",
"command": "editor.action.selectAllMatches",
"when": "editorFocus && findWidgetVisible"
},
{
// 选中行(没啥用)
"key": "ctrl+i",
"command": "expandLineSelection",
"when": "editorTextFocus"
},
{
// 反向缩进
"key": "shift+tab",
"command": "outdent",
"when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"
},
{
// 减少选择(不太好用)
"key": "shift+alt+left",
"command": "editor.action.smartSelect.shrink",
"when": "editorTextFocus"
},
{
// 阔选
"key": "ctrl+w",
"command": "editor.action.smartSelect.grow",
"when": "editorTextFocus"
},
{
// 提示
"key": "ctrl+q",
"command": "editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && editorTextFocus && !editorReadonly"
},
{
// 方法的参数提示
"key": "ctrl+shift+q",
"command": "editor.action.triggerParameterHints",
"when": "editorHasSignatureHelpProvider && editorTextFocus"
},
{
// 放大屏幕
"key": "ctrl+oem_plus",
"command": "workbench.action.zoomIn"
},
{
// 缩小屏幕
"key": "ctrl+oem_minus",
"command": "workbench.action.zoomOut"
},
{
// 跳到指定的行
"key": "ctrl+g",
"command": "workbench.action.gotoLine"
},
{
// 打开最近的打开过的文件夹列表
"key": "ctrl+e",
"command": "workbench.action.openRecent"
},
{
// 打开集成终端
"key": "ctrl+oem_3",
"command": "workbench.action.terminal.toggleTerminal",
"when": "editorTextFocus"
},
{
// 打开markdown结果
"key": "ctrl+m",
"command": "markdown.showPreview",
"when": "editorLangId == 'markdown'"
},
{
// 复制当前行
"key": "ctrl+down",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus"
},
{
// 查文件
"key": "ctrl+p",
"command": "workbench.action.quickOpen"
},
]