-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkeybindings.json
More file actions
119 lines (119 loc) · 3.01 KB
/
keybindings.json
File metadata and controls
119 lines (119 loc) · 3.01 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
// Place your key bindings in this file to override the defaults
[
{
"key": "alt+=",
"command": "expand_region",
"when": "editorTextFocus"
},
{
"key": "alt+-",
"command": "undo_expand_region",
"when": "editorTextFocus && editorHasSelection"
},
{
"key": "ctrl+b",
"command": "workbench.files.action.focusFilesExplorer",
"when": "editorTextFocus"
},
// 新增文件
{
"key": "a",
"command": "explorer.newFile",
"when": "filesExplorerFocus && !inputFocus"
},
// 新增文件夹
{
"key": "shift+a",
"command": "explorer.newFolder",
"when": "filesExplorerFocus && !inputFocus"
},
// 复制文件
{
"key": "y",
"command": "filesExplorer.copy",
"when": "filesExplorerFocus && !inputFocus"
},
// 粘贴文件
{
"key": "p",
"command": "filesExplorer.paste",
"when": "filesExplorerFocus && !inputFocus"
},
// 删除文件
// {
// "key": "d",
// "command": "deleteFile",
// "when": "filesExplorerFocus && !inputFocus"
// },
{
"key": "d",
"command": "deleteFile",
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceReadonly && !inputFocus"
},
// 重命名文件
{
"key": "r",
"command": "renameFile",
"when": "filesExplorerFocus && !inputFocus"
},
// 选择提示
{
"key": "ctrl+j",
"command": "selectNextSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus || suggestWidgetVisible && textInputFocus && !suggestWidgetHasFocusedSuggestion"
},
{
"key": "ctrl+k",
"command": "selectPrevSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus || suggestWidgetVisible && textInputFocus && !suggestWidgetHasFocusedSuggestion"
},
// 移动行
{
"key": "alt+j",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+k",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+h",
"command": "workbench.action.navigateLeft"
},
{
"key": "ctrl+shift+j",
"name": "Navigate Down",
"command": "workbench.action.navigateDown"
},
{
"key": "ctrl+shift+k",
"name": "Navigate Up",
"command": "workbench.action.navigateUp"
},
{
"key": "ctrl+shift+l",
"command": "workbench.action.navigateRight"
},
{
"key": "ctrl+t",
"command": "workbench.action.terminal.toggleTerminal",
"when": "terminal.active"
},
{
"key": "ctrl+;", // 默认是 ctrl+shift+e
"command": "workbench.view.explorer",
"when": "viewContainer.workbench.view.explorer.enabled"
},
// 从终端切换到编辑器
{
"key": "ctrl+'", // 默认是 ctrl+1
"command": "workbench.action.focusFirstEditorGroup"
},
// {
// "key": "ctrl+alt+l",
// "command": "editor.action.formatDocument",
// "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
// }
]