Skip to content

Instantly share code, notes, and snippets.

@jordanluyke
Last active December 15, 2020 20:06
Show Gist options
  • Save jordanluyke/215cf624f56d72716fb79aaacbe8d009 to your computer and use it in GitHub Desktop.
Save jordanluyke/215cf624f56d72716fb79aaacbe8d009 to your computer and use it in GitHub Desktop.
Mac VSCode keybindings
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+cmd+up",
"command": "-notebook.cell.focusOutOutput",
"when": "notebookEditorFocused"
},
{
"key": "ctrl+cmd+up",
"command": "-workbench.action.terminal.resizePaneUp",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "cmd+backspace",
"command": "keybindings.editor.removeKeybinding",
"when": "inKeybindings && keybindingFocus"
},
{
"key": "cmd+k cmd+backspace",
"command": "-keybindings.editor.removeKeybinding",
"when": "inKeybindings && keybindingFocus"
},
{
"key": "ctrl+cmd+down",
"command": "-workbench.action.terminal.resizePaneDown",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "ctrl+cmd+down",
"command": "-notebook.cell.focusInOutput",
"when": "notebookCellHasOutputs && notebookEditorFocused"
},
{
"key": "ctrl+cmd+down",
"command": "-notebook.focusNextEditor",
"when": "notebookEditorFocused && notebookOutputFocused"
},
{
"key": "ctrl+cmd+up",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+up",
"command": "-editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+cmd+down",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+down",
"command": "-editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+t",
"command": "-workbench.action.showAllSymbols"
},
{
"key": "cmd+t",
"command": "workbench.action.quickOpen"
},
{
"key": "cmd+p",
"command": "-workbench.action.quickOpen"
},
{
"key": "shift+enter",
"command": "-python.execSelectionInTerminal",
"when": "editorTextFocus && !findInputFocussed && !jupyter.ownsSelection && !replaceInputFocussed && editorLangId == 'python'"
},
{
"key": "f2",
"command": "renameFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "enter",
"command": "-renameFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment