|
1 | | -// Place your key bindings in this file to override the defaultsauto[] |
| 1 | +// Place your key bindings in this file to override the defaults |
2 | 2 | [ |
3 | 3 | { |
4 | | - "key": "shift+cmd+up", |
5 | | - "command": "cursorMove", |
| 4 | + "key": "cmd+i", |
| 5 | + "command": "composerMode.agent" |
| 6 | + }, |
| 7 | + { |
| 8 | + "key": "ctrl+d", |
| 9 | + "command": "workbench.files.action.showActiveFileInExplorer" |
| 10 | + }, |
| 11 | + { |
| 12 | + "key": "ctrl+s", |
| 13 | + "command": "filesExplorer.findInWorkspace" |
| 14 | + }, |
| 15 | + { |
| 16 | + "key": "cmd+1", |
| 17 | + "command": "workbench.action.openEditorAtIndex1" |
| 18 | + }, |
| 19 | + { |
| 20 | + "key": "cmd+2", |
| 21 | + "command": "workbench.action.openEditorAtIndex2" |
| 22 | + }, |
| 23 | + { |
| 24 | + "key": "cmd+3", |
| 25 | + "command": "workbench.action.openEditorAtIndex3" |
| 26 | + }, |
| 27 | + { |
| 28 | + "key": "cmd+4", |
| 29 | + "command": "workbench.action.openEditorAtIndex4" |
| 30 | + }, |
| 31 | + { |
| 32 | + "key": "cmd+5", |
| 33 | + "command": "workbench.action.openEditorAtIndex5" |
| 34 | + }, |
| 35 | + { |
| 36 | + "key": "cmd+6", |
| 37 | + "command": "workbench.action.openEditorAtIndex6" |
| 38 | + }, |
| 39 | + { |
| 40 | + "key": "cmd+7", |
| 41 | + "command": "workbench.action.openEditorAtIndex7" |
| 42 | + }, |
| 43 | + { |
| 44 | + "key": "cmd+8", |
| 45 | + "command": "workbench.action.openEditorAtIndex8" |
| 46 | + }, |
| 47 | + { |
| 48 | + "key": "cmd+9", |
| 49 | + "command": "workbench.action.openEditorAtIndex9" |
| 50 | + }, |
| 51 | + { |
| 52 | + "key": "alt+down", |
| 53 | + "command": "runCommands", |
6 | 54 | "args": { |
7 | | - "to": "up", |
8 | | - "by": "line", |
9 | | - "value": 4 |
| 55 | + "commands": ["cursorDown", "editor.gotoNextFold"] |
10 | 56 | }, |
11 | 57 | "when": "editorTextFocus" |
12 | 58 | }, |
13 | 59 | { |
14 | | - "key": "shift+cmd+down", |
15 | | - "command": "cursorMove", |
| 60 | + "key": "alt+up", |
| 61 | + "command": "runCommands", |
16 | 62 | "args": { |
17 | | - "to": "down", |
18 | | - "by": "line", |
19 | | - "value": 4 |
| 63 | + "commands": ["cursorUp", "editor.gotoPreviousFold"] |
20 | 64 | }, |
21 | 65 | "when": "editorTextFocus" |
22 | 66 | }, |
23 | 67 | { |
24 | | - "key": "shift+ctrl+down", |
25 | | - "command": "cursorMove", |
26 | | - "when": "editorTextFocus", |
| 68 | + "key": "shift+alt+down", |
| 69 | + "command": "runCommands", |
27 | 70 | "args": { |
28 | | - "to": "nextBlankLine", |
29 | | - "by": "wrappedLine" |
30 | | - } |
| 71 | + "commands": ["cursorLineEndSelect", "editor.action.selectFromAnchorToCursor"] |
| 72 | + }, |
| 73 | + "when": "editorTextFocus && selectionAnchorSet" |
31 | 74 | }, |
32 | 75 | { |
33 | | - "key": "shift+ctrl+up", |
34 | | - "command": "cursorMove", |
35 | | - "when": "editorTextFocus", |
| 76 | + "key": "shift+alt+down", |
| 77 | + "command": "runCommands", |
36 | 78 | "args": { |
37 | | - "to": "prevBlankLine", |
38 | | - "by": "wrappedLine" |
39 | | - } |
| 79 | + "commands": ["cursorLineStart", "editor.action.setSelectionAnchor", "cursorDown", "editor.gotoNextFold"] |
| 80 | + }, |
| 81 | + "when": "editorTextFocus && !selectionAnchorSet" |
| 82 | + }, |
| 83 | + { |
| 84 | + "key": "shift+alt+up", |
| 85 | + "command": "runCommands", |
| 86 | + "args": { |
| 87 | + "commands": ["cursorLineStartSelect", "editor.action.selectFromAnchorToCursor"] |
| 88 | + }, |
| 89 | + "when": "editorTextFocus && selectionAnchorSet" |
| 90 | + }, |
| 91 | + { |
| 92 | + "key": "shift+alt+up", |
| 93 | + "command": "runCommands", |
| 94 | + "args": { |
| 95 | + "commands": ["cursorLineEnd", "editor.action.setSelectionAnchor", "cursorUp", "editor.gotoPreviousFold"] |
| 96 | + }, |
| 97 | + "when": "editorTextFocus && !selectionAnchorSet" |
40 | 98 | }, |
41 | 99 | { |
42 | 100 | "key": "ctrl+f", |
43 | | - "command": "-cursorRight", |
44 | | - "when": "textInputFocus" |
| 101 | + "command": "actions.find", |
45 | 102 | }, |
46 | 103 | { |
47 | | - "key": "alt+f", |
48 | | - "command": "editor.gotoNextFold" |
| 104 | + "key": "ctrl+r", |
| 105 | + "command": "deleteWordRight", |
| 106 | + "when": "editorFocus" |
49 | 107 | }, |
50 | 108 | { |
51 | | - "key": "alt+b", |
52 | | - "command": "editor.gotoPreviousFold" |
| 109 | + "key": "ctrl+l", |
| 110 | + "command": "deleteWordLeft", |
| 111 | + "when": "editorFocus" |
53 | 112 | }, |
54 | 113 | { |
55 | | - "key": "ctrl+f", |
56 | | - "command": "cursorWordPartRight", |
57 | | - "when": "textInputFocus" |
| 114 | + "key": "ctrl+shift+r", |
| 115 | + "command": "deleteAllRight", |
| 116 | + "when": "editorFocus" |
| 117 | + }, |
| 118 | + { |
| 119 | + "key": "ctrl+shift+l", |
| 120 | + "command": "deleteAllLeft", |
| 121 | + "when": "editorFocus" |
| 122 | + }, |
| 123 | + { |
| 124 | + "key": "ctrl+shift+g", |
| 125 | + "command": "cursorBottom", |
| 126 | + "when": "editorFocus" |
58 | 127 | }, |
59 | 128 | { |
60 | | - "key": "ctrl+alt+right", |
61 | | - "command": "-cursorWordPartRight", |
62 | | - "when": "textInputFocus" |
| 129 | + "key": "ctrl+v", |
| 130 | + "command": "runCommands", |
| 131 | + "args": { |
| 132 | + "commands": [ |
| 133 | + "cursorHome", |
| 134 | + "cursorEndSelect" |
| 135 | + ] |
| 136 | + }, |
| 137 | + "when": "editorFocus" |
63 | 138 | }, |
64 | 139 | { |
65 | | - "key": "ctrl+b", |
66 | | - "command": "cursorWordPartLeft", |
67 | | - "when": "textInputFocus" |
| 140 | + "key": "ctrl+shift+v", |
| 141 | + "command": "runCommands", |
| 142 | + "args": { |
| 143 | + "commands": [ |
| 144 | + "cursorHome", |
| 145 | + "cursorEndSelect" |
| 146 | + ] |
| 147 | + }, |
| 148 | + "when": "editorFocus" |
68 | 149 | }, |
69 | 150 | { |
70 | | - "key": "ctrl+alt+left", |
71 | | - "command": "-cursorWordPartLeft", |
72 | | - "when": "textInputFocus" |
| 151 | + "key": "ctrl+o", |
| 152 | + "command": "runCommands", |
| 153 | + "args": { |
| 154 | + "commands": [ |
| 155 | + "workbench.action.gotoSymbol", |
| 156 | + ] |
| 157 | + }, |
| 158 | + "when": "editorTextFocus" |
73 | 159 | }, |
74 | 160 | { |
75 | | - "key": "ctrl+w", |
76 | | - "command": "-workbench.action.switchWindow" |
| 161 | + "key": "ctrl+u", |
| 162 | + "command": "runCommands", |
| 163 | + "args": { |
| 164 | + "commands": [ |
| 165 | + "cursorLineStart", |
| 166 | + "editor.action.insertLineBefore" |
| 167 | + ] |
| 168 | + }, |
| 169 | + "when": "editorTextFocus" |
| 170 | + }, |
| 171 | + { |
| 172 | + "key": "ctrl+enter", |
| 173 | + "command": "runCommands", |
| 174 | + "args": { |
| 175 | + "commands": [ |
| 176 | + "cursorEnd", |
| 177 | + "editor.action.insertLineAfter" |
| 178 | + ] |
| 179 | + }, |
| 180 | + "when": "editorTextFocus" |
| 181 | + }, |
| 182 | + { |
| 183 | + "key": "ctrl+a", |
| 184 | + "command": "cursorHome", |
| 185 | + "when": "editorTextFocus" |
| 186 | + }, |
| 187 | + { |
| 188 | + "key": "cmd+enter", |
| 189 | + "command": "explorer.openAndPassFocus", |
| 190 | + "when": "filesExplorerFocus && !inputFocus" |
| 191 | + }, |
| 192 | + { |
| 193 | + "key": "ctrl+m", |
| 194 | + "command": "cursorMove", |
| 195 | + "args": { |
| 196 | + "to": "viewPortCenter" |
| 197 | + } |
77 | 198 | }, |
78 | 199 | { |
79 | | - "key": "ctrl+w", |
80 | | - "command": "deleteWordPartLeft", |
81 | | - "when": "textInputFocus && !editorReadonly" |
| 200 | + "key": "ctrl+[", |
| 201 | + "command": "editor.fold", |
82 | 202 | }, |
83 | 203 | { |
84 | | - "key": "ctrl+alt+backspace", |
85 | | - "command": "-deleteWordPartLeft", |
86 | | - "when": "textInputFocus && !editorReadonly" |
| 204 | + "key": "ctrl+]", |
| 205 | + "command": "editor.unfold", |
87 | 206 | } |
88 | 207 | ] |
0 commit comments