Created
January 5, 2023 10:30
-
-
Save solarkraft/026c3907c18896808cede9f7bb0f012c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
// Quickly run tasks | |
{ | |
"key": "cmd+r", | |
"command": "workbench.action.tasks.reRunTask" | |
}, | |
{ | |
"key": "shift+cmd+r", | |
"command": "workbench.action.tasks.runTask" | |
}, | |
// Undo/redo using page up/down | |
{ | |
"key": "pageup", | |
"command": "-workbench.action.terminal.scrollUpPage", | |
"when": "terminalFocus && terminalHasBeenCreated && !terminalAltBufferActive || terminalFocus && terminalProcessSupported && !terminalAltBufferActive" | |
}, | |
{ | |
"key": "pagedown", | |
"command": "-workbench.action.terminal.scrollDownPage", | |
"when": "terminalFocus && terminalHasBeenCreated && !terminalAltBufferActive || terminalFocus && terminalProcessSupported && !terminalAltBufferActive" | |
}, | |
{ | |
"key": "pageup", | |
"command": "undo" | |
}, | |
{ | |
"key": "pagedown", | |
"command": "redo" | |
}, | |
// Comment lines using end | |
{ | |
"key": "end", | |
"command": "-cursorEnd", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "end", | |
"command": "editor.action.commentLine", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
// Todo: Do something with home, idk what yet | |
{ | |
"key": "home", | |
"command": "-cursorHome", | |
"when": "textInputFocus" | |
}, | |
// Positon-independent indentation with tab (actual tab mapped to alt+shift+tab for the rare event you actually want to type it) | |
{ | |
"key": "tab", | |
"command": "-tab", | |
"when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus" | |
}, | |
{ | |
"key": "tab", | |
"command": "editor.action.indentLines", | |
"when": "editorTextFocus && !editorReadonly && !inlineSuggestionVisible && !suggestWidgetVisible" | |
}, | |
{ | |
"key": "shift+alt+tab", | |
"command": "tab", | |
"when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus" | |
}, | |
// cmd+d for "duplicate" and "delete" | |
{ | |
"key": "cmd+d", | |
"command": "-editor.action.addSelectionToNextFindMatch", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "shift+cmd+d", | |
"command": "-workbench.view.debug", | |
"when": "viewContainer.workbench.view.debug.enabled" | |
}, | |
{ | |
"key": "cmd+d", | |
"command": "editor.action.deleteLines", // There is no deleteSelection :( | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "shift+cmd+d", | |
"command": "editor.action.duplicateSelection", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment