Last active
March 26, 2024 01:24
-
-
Save xcollantes/bc0d3ffce0802ddb99f18239a28680ca to your computer and use it in GitHub Desktop.
VScode keybindings mappings. Example location on Mac: `~/Library/Application Support/Code/User/keybindings.json`
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
| // Place your key bindings in this file to override the defaultsauto[] | |
| [ | |
| { | |
| "key": "ctrl+shift+g s", | |
| "command": "git.stage" | |
| }, | |
| { | |
| "key": "ctrl+shift+g c", | |
| "command": "git.commit" | |
| }, | |
| { | |
| "key": "shift+cmd+a", | |
| "command": "workbench.action.closeSidebar" | |
| }, | |
| { | |
| "key": "shift+cmd+g", | |
| "command": "workbench.view.scm", | |
| "when": "workbench.scm.active" | |
| }, | |
| { | |
| "key": "ctrl+shift+g", | |
| "command": "-workbench.view.scm", | |
| "when": "workbench.scm.active" | |
| }, | |
| { | |
| "key": "shift+cmd+a", | |
| "command": "workbench.action.toggleSidebarVisibility" | |
| }, | |
| { | |
| "key": "cmd+b", | |
| "command": "-workbench.action.toggleSidebarVisibility" | |
| }, | |
| { | |
| "key": "ctrl+shift+g g", | |
| "command": "git-graph.view" | |
| }, | |
| { | |
| "key": "ctrl+shift+g n", | |
| "command": "git.branchFrom" | |
| }, | |
| { | |
| "key": "ctrl+shift+g b", | |
| "command": "git.checkout" | |
| }, | |
| { | |
| "key": "ctrl+shift+g u", | |
| "command": "git.push" | |
| }, | |
| { | |
| "key": "ctrl+shift+g p", | |
| "command": "git.pull" | |
| }, | |
| { | |
| "key": "ctrl+shift+g o", | |
| "command": "git.openRepository" | |
| }, | |
| { | |
| "key": "shift+cmd+a", | |
| "command": "workbench.action.toggleActivityBarVisibility" | |
| }, | |
| { | |
| "key": "ctrl+shift+g x", | |
| "command": "git.stageAll" | |
| }, | |
| { | |
| "key": "ctrl+shift+f", | |
| "command": "editor.action.formatDocument", | |
| "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor" | |
| }, | |
| { | |
| "key": "shift+alt+f", | |
| "command": "-editor.action.formatDocument", | |
| "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor" | |
| }, | |
| { | |
| "key": "ctrl+shift+l", | |
| "command": "workbench.action.toggleMultiCursorModifier" | |
| }, | |
| { | |
| "key": "cmd+y", | |
| "command": "redo" | |
| }, | |
| { | |
| "key": "shift+cmd+z", | |
| "command": "-redo" | |
| }, | |
| { | |
| "key": "shift+cmd+m", | |
| "command": "markdown.showPreviewToSide", | |
| "when": "!notebookEditorFocused && editorLangId == 'markdown'" | |
| }, | |
| { | |
| "key": "cmd+k v", | |
| "command": "-markdown.showPreviewToSide", | |
| "when": "!notebookEditorFocused && editorLangId == 'markdown'" | |
| }, | |
| { | |
| "key": "shift+cmd+m", | |
| "command": "-workbench.actions.view.problems", | |
| "when": "workbench.panel.markers.view.active" | |
| }, | |
| { | |
| "key": "ctrl+shift+t c", | |
| "command": "workbench.action.terminal.new", | |
| "when": "terminalProcessSupported || terminalWebExtensionContributedProfile" | |
| }, | |
| { | |
| "key": "ctrl+shift+`", | |
| "command": "-workbench.action.terminal.new", | |
| "when": "terminalProcessSupported || terminalWebExtensionContributedProfile" | |
| }, | |
| { | |
| "key": "ctrl+shift+t n", | |
| "command": "workbench.action.terminal.newWithProfile" | |
| }, | |
| { | |
| "key": "ctrl+shift+t a", | |
| "command": "workbench.action.terminal.attachToSession" | |
| }, | |
| { | |
| "key": "ctrl+shift+t d", | |
| "command": "workbench.action.terminal.detachSession" | |
| }, | |
| { | |
| "key": "cmd+t", | |
| "command": "workbench.action.terminal.toggleTerminal", | |
| "when": "terminal.active" | |
| }, | |
| { | |
| "key": "ctrl+`", | |
| "command": "-workbench.action.terminal.toggleTerminal", | |
| "when": "terminal.active" | |
| }, | |
| { | |
| "key": "ctrl+shift+t q", | |
| "command": "workbench.action.terminal.killAll" | |
| }, | |
| { | |
| "key": "ctrl+shift+t k", | |
| "command": "workbench.action.terminal.kill" | |
| }, | |
| { | |
| "key": "cmd+d", | |
| "command": "git.openChange" | |
| }, | |
| { | |
| "key": "cmd+t", | |
| "command": "-workbench.action.showAllSymbols" | |
| }, | |
| { | |
| "key": "cmd+r", | |
| "command": "workbench.action.openRecent" | |
| }, | |
| { | |
| "key": "ctrl+r", | |
| "command": "-workbench.action.openRecent" | |
| }, | |
| { | |
| "key": "shift+cmd+d", | |
| "command": "-workbench.view.debug", | |
| "when": "viewContainer.workbench.view.debug.enabled" | |
| }, | |
| { | |
| "key": "shift+cmd+d down", | |
| "command": "workbench.action.moveActiveEditorGroupDown" | |
| }, | |
| { | |
| "key": "cmd+k down", | |
| "command": "-workbench.action.moveActiveEditorGroupDown" | |
| }, | |
| { | |
| "key": "shift+cmd+d left", | |
| "command": "workbench.action.moveActiveEditorGroupLeft" | |
| }, | |
| { | |
| "key": "cmd+k left", | |
| "command": "-workbench.action.moveActiveEditorGroupLeft" | |
| }, | |
| { | |
| "key": "shift+cmd+d right", | |
| "command": "workbench.action.moveActiveEditorGroupRight" | |
| }, | |
| { | |
| "key": "cmd+k right", | |
| "command": "-workbench.action.moveActiveEditorGroupRight" | |
| }, | |
| { | |
| "key": "shift+cmd+d up", | |
| "command": "workbench.action.moveActiveEditorGroupUp" | |
| }, | |
| { | |
| "key": "cmd+k up", | |
| "command": "-workbench.action.moveActiveEditorGroupUp" | |
| }, | |
| { | |
| "key": "shift+cmd+d up", | |
| "command": "workbench.action.moveEditorToAboveGroup" | |
| }, | |
| { | |
| "key": "shift+cmd+d left", | |
| "command": "workbench.action.moveEditorToLeftGroup" | |
| }, | |
| { | |
| "key": "shift+cmd+d down", | |
| "command": "workbench.action.moveEditorToBelowGroup" | |
| }, | |
| { | |
| "key": "shift+cmd+d right", | |
| "command": "workbench.action.moveEditorToRightGroup" | |
| }, | |
| { | |
| "key": "ctrl+shift+g d", | |
| "command": "git.deleteBranch" | |
| }, | |
| { | |
| "key": "ctrl+q", | |
| "command": "-workbench.action.quickOpenNavigateNextInViewPicker", | |
| "when": "inQuickOpen && inViewsPicker" | |
| }, | |
| { | |
| "key": "ctrl+q", | |
| "command": "-workbench.action.quickOpenView" | |
| }, | |
| { | |
| "key": "ctrl+q", | |
| "command": "rewrap.rewrapComment", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "alt+q", | |
| "command": "-rewrap.rewrapComment", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+` cmd", | |
| "command": "workbench.action.togglePanel" | |
| }, | |
| { | |
| "key": "cmd+j", | |
| "command": "-workbench.action.togglePanel" | |
| }, | |
| { | |
| "key": "f2", | |
| "command": "-editor.action.rename", | |
| "when": "editorHasRenameProvider && editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "cmd+h", | |
| "command": "editor.action.startFindReplaceAction", | |
| "when": "editorFocus || editorIsOpen" | |
| }, | |
| { | |
| "key": "alt+cmd+f", | |
| "command": "-editor.action.startFindReplaceAction", | |
| "when": "editorFocus || editorIsOpen" | |
| }, | |
| { | |
| "key": "cmd+k", | |
| "command": "editor.action.showHover", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "cmd+k cmd+i", | |
| "command": "-editor.action.showHover", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "f9", | |
| "command": "workbench.action.selectTheme" | |
| }, | |
| { | |
| "key": "cmd+k cmd+t", | |
| "command": "-workbench.action.selectTheme" | |
| }, | |
| { | |
| "key": "f9", | |
| "command": "-editor.debug.action.toggleBreakpoint", | |
| "when": "debuggersAvailable && disassemblyViewFocus || debuggersAvailable && editorTextFocus" | |
| }, | |
| { | |
| "key": "f9", | |
| "command": "-sortLines.sortLines", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "cmd+enter", | |
| "command": "notebook.cell.execute", | |
| "when": "notebookCellListFocused && notebookMissingKernelExtension && !notebookCellExecuting && notebookCellType == 'code' || notebookCellListFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelCount > 0 || notebookCellListFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelSourceCount > 0" | |
| }, | |
| { | |
| "key": "ctrl+enter", | |
| "command": "-notebook.cell.execute", | |
| "when": "notebookCellListFocused && notebookMissingKernelExtension && !notebookCellExecuting && notebookCellType == 'code' || notebookCellListFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelCount > 0 || notebookCellListFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelSourceCount > 0" | |
| }, | |
| { | |
| "key": "cmd+m d", | |
| "command": "notebook.cell.delete", | |
| "when": "notebookEditorFocused && !inputFocus" | |
| }, | |
| { | |
| "key": "cmd+backspace", | |
| "command": "-notebook.cell.delete", | |
| "when": "notebookEditorFocused && !inputFocus" | |
| }, | |
| { | |
| "key": "d d", | |
| "command": "-notebook.cell.delete", | |
| "when": "notebookEditorFocused && !inputFocus && !notebookOutputInputFocused" | |
| }, | |
| { | |
| "key": "cmd+m n", | |
| "command": "jupyter.notebookeditor.addcellbelow" | |
| }, | |
| { | |
| "key": "cmd+m l", | |
| "command": "notebook.cell.changeLanguage" | |
| }, | |
| { | |
| "key": "shift+cmd+enter", | |
| "command": "-notebook.cell.insertCodeCellAbove", | |
| "when": "notebookCellListFocused && !inputFocus" | |
| }, | |
| { | |
| "key": "cmd+m n", | |
| "command": "notebook.cell.insertCodeCellBelowAndFocusContainer", | |
| "when": "notebookEditorFocused && !inputFocus && !notebookOutputInputFocused" | |
| }, | |
| { | |
| "key": "b", | |
| "command": "-notebook.cell.insertCodeCellBelowAndFocusContainer", | |
| "when": "notebookEditorFocused && !inputFocus && !notebookOutputInputFocused" | |
| }, | |
| { | |
| "key": "cmd+m a", | |
| "command": "notebook.cell.insertCodeCellAboveAndFocusContainer", | |
| "when": "notebookEditorFocused && !inputFocus && !notebookOutputInputFocused" | |
| }, | |
| { | |
| "key": "a", | |
| "command": "-notebook.cell.insertCodeCellAboveAndFocusContainer", | |
| "when": "notebookEditorFocused && !inputFocus && !notebookOutputInputFocused" | |
| }, | |
| { | |
| "key": "cmd+enter", | |
| "command": "-notebook.cell.insertCodeCellBelow", | |
| "when": "notebookCellListFocused && !inputFocus && notebookChatOuterFocusPosition == ''" | |
| }, | |
| { | |
| "key": "cmd+m x", | |
| "command": "notebook.cell.clearOutputs", | |
| "when": "notebookCellEditable && notebookCellHasOutputs && notebookEditable && notebookEditorFocused && !inputFocus" | |
| }, | |
| { | |
| "key": "alt+delete", | |
| "command": "-notebook.cell.clearOutputs", | |
| "when": "notebookCellEditable && notebookCellHasOutputs && notebookEditable && notebookEditorFocused && !inputFocus" | |
| }, | |
| { | |
| "key": "cmd+m t", | |
| "command": "notebook.cell.insertMarkdownCellBelow" | |
| }, | |
| { | |
| "key": "shift+enter", | |
| "command": "-notebook.cell.executeAndSelectBelow", | |
| "when": "notebookCellListFocused && !inlineChatFocused && notebookCellType == 'markup' || notebookCellListFocused && notebookMissingKernelExtension && !inlineChatFocused && !notebookCellExecuting && notebookCellType == 'code' || notebookCellListFocused && !inlineChatFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelCount > 0 || notebookCellListFocused && !inlineChatFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelSourceCount > 0" | |
| }, | |
| { | |
| "key": "shift+enter", | |
| "command": "-notebook.cell.executeAndSelectBelow", | |
| "when": "notebookCellListFocused && !interactiveEditorFocused && notebookCellType == 'code' || editorTextFocus && inputFocus && notebookEditorFocused && !interactiveEditorFocused" | |
| }, | |
| { | |
| "key": "shift+cmd+enter", | |
| "command": "-editor.action.insertLineBefore", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "shift+cmd+enter", | |
| "command": "notebook.execute" | |
| } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment