Skip to content

Instantly share code, notes, and snippets.

@gilvam
Created November 6, 2024 02:59
Show Gist options
  • Save gilvam/60608ee19927abf87afa424273183326 to your computer and use it in GitHub Desktop.
Save gilvam/60608ee19927abf87afa424273183326 to your computer and use it in GitHub Desktop.
[
{
// SELECT smart
"key": "ctrl+w",
"command": "editor.action.smartSelect.expand",
"when": "editorTextFocus"
},
{
// UNSELECT smart
"key": "ctrl+shift+w",
"command": "editor.action.smartSelect.shrink",
"when": "editorTextFocus"
},
{
// MOVE line up
"key": "shift+alt+up",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
// MOVE line down
"key": "shift+alt+down",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
// SELECT same name
"key": "ctrl+g",
"command": "editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
// UNSELECT same name
"key": "ctrl+shift+g",
"command": "cursorUndo",
"when": "textInputFocus"
},
// REMOVE
{
"key": "ctrl+g",
"command": "-workbench.action.gotoLine"
},
{
"key": "shift+alt+down",
"command": "-notebook.cell.copyDown",
"when": "notebookEditorFocused && !inputFocus"
},
{
"key": "shift+alt+left",
"command": "-editor.action.smartSelect.shrink",
"when": "editorTextFocus"
},
{
"key": "alt+up",
"command": "-editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+down",
"command": "-editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+up",
"command": "-notebook.cell.copyUp",
"when": "notebookEditorFocused && !inputFocus"
},
{
"key": "shift+alt+right",
"command": "-editor.action.smartSelect.expand",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+w",
"command": "-workbench.action.closeWindow"
},
{
"key": "ctrl+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "ctrl+u",
"command": "-cursorUndo",
"when": "textInputFocus"
},
{
"key": "ctrl+w",
"command": "-workbench.action.terminal.killEditor",
"when": "terminalEditorFocus && terminalFocus && terminalHasBeenCreated || terminalEditorFocus && terminalFocus && terminalProcessSupported"
},
{
"key": "ctrl+w",
"command": "-workbench.action.closeActiveEditor"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment