| // Place your key bindings in this file to overwrite the defaults |
| [ |
| // Run the task marked as "isTestCommand": true, see tasks.json. |
| { "key": "ctrl+shift+t", "command": "workbench.action.tasks.test" }, |
| // Jump to the previous change in the built-in diff tool. |
| { "key": "ctrl+up", "command": "workbench.action.compareEditor.previousChange" }, |
| // Jump to the next change in the built-in diff tool. |
| { "key": "ctrl+down", "command": "workbench.action.compareEditor.nextChange" }, |
| // Jump to previous location in the editor (useful to get back from viewing a symbol definition). |
| { "key": "alt+left", "command": "workbench.action.navigateBack" }, |
| // Jump to next location in the editor. |
| { "key": "alt+right", "command": "workbench.action.navigateForward" }, |
| // Get a blame view of the current file. Requires the annotator extension. |
| { "key": "ctrl+alt+a", "command": "annotator.annotate" }, |
| // Toggle header/source with the Toggle Header/Source extension (overrides the |
| // key binding from the C/C++ extension as I found it to be slow). |
| { "key": "alt+o", "command": "togglehs.toggleHS" }, |
| // Quickly run a task, see tasks.json. Since we named them 1-, 2- etc., it is |
| // suffucient to press the corresponding number. |
| { "key": "ctrl+r", "command": "workbench.action.tasks.runTask", |
| "when": "!inDebugMode" }, |
| // The following keybindings are useful on laptops with small keyboards such as |
| // Chromebooks that don't provide all keys. |
| { "key": "shift+alt+down", "command": "cursorColumnSelectDown", |
| "when": "editorTextFocus" }, |
| { "key": "shift+alt+left", "command": "cursorColumnSelectLeft", |
| "when": "editorTextFocus" }, |
| { "key": "shift+alt+pagedown", "command": "cursorColumnSelectPageDown", |
| "when": "editorTextFocus" }, |
| { "key": "shift+alt+pageup", "command": "cursorColumnSelectPageUp", |
| "when": "editorTextFocus" }, |
| { "key": "shift+alt+right", "command": "cursorColumnSelectRight", |
| "when": "editorTextFocus" }, |
| { "key": "shift+alt+up", "command": "cursorColumnSelectUp", |
| "when": "editorTextFocus" }, |
| { "key": "alt+down", "command": "scrollPageDown", |
| "when": "editorTextFocus" }, |
| { "key": "alt+up", "command": "scrollPageUp", |
| "when": "editorTextFocus" }, |
| { "key": "alt+backspace", "command": "deleteRight", |
| "when": "editorTextFocus && !editorReadonly" }, |
| { "key": "ctrl+right", "command": "cursorEnd", |
| "when": "editorTextFocus" }, |
| { "key": "ctrl+shift+right", "command": "cursorEndSelect", |
| "when": "editorTextFocus" }, |
| { "key": "ctrl+left", "command": "cursorHome", |
| "when": "editorTextFocus" }, |
| { "key": "ctrl+shift+left", "command": "cursorHomeSelect", |
| "when": "editorTextFocus" }, |
| ] |