Skip to content

Instantly share code, notes, and snippets.

@rw3iss
Last active October 24, 2023 02:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rw3iss/643373e0eb27fac57e946a798773f17d to your computer and use it in GitHub Desktop.
Save rw3iss/643373e0eb27fac57e946a798773f17d to your computer and use it in GitHub Desktop.
keybindings.json
// Place your key bindings in this file to override the defaults
[
{
"key": "cmd+ctrl+t",
"command": "editor.action.insertSnippet",
"when": "editorHasSelection",
"args": {
"langId": "javascript",
"name": "Wrap in try/catch"
}
},
{
"key": "cmd+ctrl+p",
"command": "editor.action.insertSnippet",
"when": "editorHasSelection",
"args": {
"langId": "javascript",
"name": "Surround in profile"
}
},
{
"key": "ctrl+tab",
"command": "workbench.action.quickSwitchWindow"
},
{
"key": "ctrl+l",
"command": "editor.action.transformToLowercase"
},
{
"key": "ctrl+t",
"command": "workbench.action.files.newUntitledFile"
},
{
"key": "ctrl+n",
"command": "workbench.action.files.newUntitledFile"
},
{
"key": "ctrl+n",
"command": "-workbench.action.files.newUntitledFile"
},
{
"key": "f1",
"command": "-workbench.action.showCommands"
},
{
"key": "ctrl+tab",
"command": "-workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup"
},
{
"key": "ctrl+tab",
"command": "-workbench.action.quickOpenNavigateNextInEditorPicker",
"when": "inEditorsPicker && inQuickOpen"
},
{
"key": "cmd+b",
"command": "extension.toggleBool",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+c",
"command": "extension.toggleCase",
"when": "editorTextFocus"
},
{
"key": "numlock",
"command": "workbench.action.showCommands"
},
{
"key": "ctrl+shift+p",
"command": "workbench.action.showCommands"
},
{
"key": "f12",
"command": "-editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "ctrl+shift+d",
"command": "-workbench.view.debug",
"when": "viewContainer.workbench.view.debug.enabled"
},
{
"key": "ctrl+shift+d",
"command": "editor.action.revealDefinition"
},
{
"key": "ctrl+shift+.",
"command": "-breadcrumbs.toggleToOn",
"when": "!config.breadcrumbs.enabled"
},
{
"key": "shift+alt+i",
"command": "-editor.action.insertCursorAtEndOfEachLineSelected",
"when": "editorTextFocus"
},
{
"key": "end",
"command": "-lastCompressedFolder",
"when": "explorerViewletCompressedFocus && explorerViewletVisible && filesExplorerFocus && !explorerViewletCompressedLastFocus && !inputFocus"
},
{
"key": "end",
"command": "-notifications.focusLastToast",
"when": "notificationFocus && notificationToastsVisible"
},
{
"key": "end",
"command": "-cursorEnd",
"when": "textInputFocus"
},
{
"key": "end",
"command": "scrollEditorBottom"
},
{
"key": "pageup",
"command": "-notebook.cell.cursorPageUp",
"when": "editorTextFocus && inputFocus && notebookEditorFocused"
},
{
"key": "home",
"command": "-cursorHome",
"when": "textInputFocus"
},
{
"key": "home",
"command": "-firstCompressedFolder",
"when": "explorerViewletCompressedFocus && explorerViewletVisible && filesExplorerFocus && !explorerViewletCompressedFirstFocus && !inputFocus"
},
{
"key": "home",
"command": "-notifications.focusFirstToast",
"when": "notificationFocus && notificationToastsVisible"
},
{
"key": "home",
"command": "scrollEditorTop"
},
{
"key": "shift+alt+s",
"command": "workbench.action.openApplicationSettingsJson"
},
{
"key": "shift+alt+w",
"command": "workbench.action.openWorkspaceSettingsFile"
},
{
"key": "shift+r",
"command": "renameFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "f2",
"command": "-renameFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "shift+alt+k",
"command": "workbench.action.openGlobalKeybindings"
},
{
"key": "ctrl+k ctrl+s",
"command": "-workbench.action.openGlobalKeybindings"
},
{
"key": "shift+alt+d",
"command": "-notebook.cell.detectLanguage",
"when": "notebookCellEditable && notebookEditable"
},
{
"key": "shift+alt+d",
"command": "-editor.detectLanguage",
"when": "editorTextFocus && !notebookEditable"
},
{
"key": "shift+alt+d",
"command": "editor.action.goToTypeDefinition"
},
{
"key": "shift+cmd+b",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "cmd+b",
"command": "-workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+alt+w",
"command": "workbench.action.showNextWindowTab"
},
{
"key": "alt+r",
"command": "editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
},
{
"key": "f2",
"command": "-editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+k",
"command": "workbench.action.openGlobalKeybindingsFile"
},
{
"key": "shift+cmd+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "alt+cmd+k",
"command": "-keybindings.editor.recordSearchKeys",
"when": "inKeybindings && inKeybindingsSearch"
},
{
"key": "alt+cmd+t",
"command": "-workbench.action.closeOtherEditors"
},
{
"key": "shift+f7",
"command": "-editor.action.wordHighlight.prev",
"when": "editorTextFocus && hasWordHighlights"
},
{
"key": "shift+cmd+left",
"command": "-cursorHomeSelect",
"when": "textInputFocus"
},
{
"key": "shift+cmd+left",
"command": "-workbench.action.terminal.sendSequence",
"when": "terminalFocus && terminalShellType == 'pwsh'"
},
{
"key": "shift+cmd+right",
"command": "-cursorEndSelect",
"when": "textInputFocus"
},
{
"key": "shift+cmd+right",
"command": "-workbench.action.terminal.sendSequence",
"when": "terminalFocus && terminalShellIntegrationEnabled && !accessibilityModeEnabled && terminalShellType == 'pwsh'"
},
{
"key": "ctrl+shift+-",
"command": "-workbench.action.navigateForward",
"when": "canNavigateForward"
},
{
"key": "shift+cmd+left",
"command": "workbench.action.navigateBack",
"when": "canNavigateBack"
},
{
"key": "alt+cmd+left",
"command": "workbench.action.navigateBack",
"when": "canNavigateBack"
},
{
"key": "ctrl+-",
"command": "-workbench.action.navigateBack",
"when": "canNavigateBack"
},
{
"key": "alt+cmd+left",
"command": "-workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "alt+cmd+left",
"command": "-workbench.action.previousEditor"
},
{
"key": "shift+cmd+right",
"command": "workbench.action.navigateForward"
},
{
"key": "shift+cmd+o",
"command": "workbench.action.files.openFileFolderInNewWindow"
},
{
"key": "ctrl+cmd+o",
"command": "workbench.action.gotoSymbol"
},
{
"key": "shift+cmd+o",
"command": "-workbench.action.gotoSymbol"
},
{
"key": "shift+cmd+e",
"command": "-workbench.view.explorer",
"when": "viewContainer.workbench.view.explorer.enabled"
},
{
"key": "cmd+h",
"command": "extension.toggleFiles"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment