-
Notifications
You must be signed in to change notification settings - Fork 7
/
keybindings.json
175 lines (175 loc) · 5.28 KB
/
keybindings.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
// 将键绑定放在此文件中以覆盖默认值
[
// 上一个标签组
{
"key": "ctrl+h",
"command": "workbench.action.focusLeftGroup"
},
// 下一个标签组
{
"key": "ctrl+l",
"command": "workbench.action.focusRightGroup"
},
// 刷新文件浏览器
{
"key": "shift+r",
"command": "workbench.files.action.refreshFilesExplorer",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
// 重命名
{
"key": "r",
"command": "renameFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
// 新建文件
{
"key": "a",
"command": "explorer.newFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
// 新建文件夹
{
"key": "shift+a",
"command": "explorer.newFolder",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
// 删除
{
"key": "d",
"command": "deleteFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
// 复制
{
"key": "y",
"command": "filesExplorer.copy",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
// 剪切
{
"key": "x",
"command": "filesExplorer.cut",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
// 粘贴
{
"key": "p",
"command": "filesExplorer.paste",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
// 打开文件
{
"key": "o",
"command": "explorer.openAndPassFocus",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsFolder && !inputFocus"
},
// 在新标签组打开文件
{
"key": "shift+o",
"command": "explorer.openToSide",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsFolder && !inputFocus"
},
// 全局搜索后,在输入框按回车,即可聚焦到搜索结果列表
{
"key": "enter",
"command": "search.action.focusSearchList",
"when": "inSearchEditor && inputBoxFocus && hasSearchResult || inputBoxFocus && searchViewletVisible && hasSearchResult"
},
// 在搜索结果列表,只需按 esc,就可回到搜索输入框
{
"key": "escape",
"command": "workbench.action.findInFiles",
"when": "searchViewletVisible && hasSearchResult && searchViewletFocus"
},
// 在搜索输入框,只需按 esc,就可回到编辑器
{
"key": "escape",
"command": "workbench.action.focusFirstEditorGroup",
"when": "inSearchEditor && inputBoxFocus|| inputBoxFocus && searchViewletVisible"
},
// 在文件浏览界面,只需按 esc,就可回到编辑器
{
"key": "escape",
"command": "workbench.action.focusFirstEditorGroup",
"when": "explorerViewletVisible && filesExplorerFocus && !inputFocus"
},
// 缩小
{
"key": "ctrl+left",
"command": "workbench.action.decreaseViewSize"
},
// 扩大
{
"key": "ctrl+right",
"command": "workbench.action.increaseViewSize"
},
{
"key": "tab",
"command": "acceptSelectedSuggestion",
"when": "suggestWidgetVisible && textInputFocus"
},
{
"key": "shift+tab",
"command": "acceptSelectedSuggestion",
"when": "suggestWidgetVisible && textInputFocus"
},
{
"key": "tab",
"command": "selectNextSuggestion",
"when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
},
{
"key": "shift+tab",
"command": "selectPrevSuggestion",
"when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
},
{
"key": "ctrl+l",
"command": "editor.action.inlineSuggest.acceptNextWord",
"when": "inlineSuggestionVisible && !editorReadonly"
},
{
"key": "ctrl+right",
"command": "-editor.action.inlineSuggest.acceptNextWord",
"when": "inlineSuggestionVisible && !editorReadonly"
},
{
"key": "ctrl+h",
"command": "editor.action.inlineSuggest.undo",
"when": "canUndoInlineSuggestion && !editorReadonly"
},
{
"key": "ctrl+left",
"command": "-editor.action.inlineSuggest.undo",
"when": "canUndoInlineSuggestion && !editorReadonly"
},
{
"key": "ctrl+shift+g",
"command": "workbench.view.scm",
"when": "workbench.scm.active && !gitlens:disabled && config.gitlens.keymap == 'chorded'"
},
{
"key": "ctrl+shift+g g",
"command": "-workbench.view.scm",
"when": "workbench.scm.active && !gitlens:disabled && config.gitlens.keymap == 'chorded'"
},
{
"key": "ctrl+r",
"command": "editor.action.startFindReplaceAction",
"when": "editorFocus || editorIsOpen"
},
{
"key": "ctrl+h",
"command": "-editor.action.startFindReplaceAction",
"when": "editorFocus || editorIsOpen"
},
{
"key": "ctrl+shift+r",
"command": "workbench.action.openRecent"
},
{
"key": "ctrl+r",
"command": "-workbench.action.openRecent"
}
]