Skip to content

Instantly share code, notes, and snippets.

@wandbferreira
Created December 11, 2020 12:34
Show Gist options
  • Save wandbferreira/a1a24a9303be5ba303a1e43d5f511064 to your computer and use it in GitHub Desktop.
Save wandbferreira/a1a24a9303be5ba303a1e43d5f511064 to your computer and use it in GitHub Desktop.
vscode shortcuts
// My custom shortcuts Windows/Linux[   {      "key": "ctrl+2",      "command": "workbench.action.toggleSidebarVisibility"   },   {      "key": "shift+alt+f",      "command": "editor.action.formatDocument",      "when": "editorTextFocus && !editorReadonly"   },   {      "key": "ctrl+shift+i",      "command": "-editor.action.formatDocument",      "when": "editorTextFocus && !editorReadonly"   },   {      "key": "ctrl+shift+v",      "command": "-markdown.showPreview",      "when": "editorLangId == 'markdown'"   },   {      "key": "ctrl+shift+v",      "command": "-markdown.extension.togglePreview",      "when": "!terminalFocus"   },   {      "key": "ctrl+e",      "command": "-workbench.action.quickOpen"   },   {      "key": "ctrl+;",      "command": "extension.insertSemicolon",      "when": "editorTextFocus"   },   {      "key": "ctrl+/",      "command": "-extension.insertSemicolon",      "when": "editorTextFocus"   },   {      "key": "ctrl+shift+;",      "command": "extension.insertSemicolonWithNewLine",      "when": "editorTextFocus"   },   {      "key": "ctrl+shift+/",      "command": "-extension.insertSemicolonWithNewLine",      "when": "editorTextFocus"   },   {      "key": "ctrl+shift+;",      "command": "-breadcrumbs.focus",      "when": "breadcrumbsPossible"   },   {      "key": "ctrl+.",      "command": "breadcrumbs.toggle"   },   {      "key": "ctrl+shift+e",      "command": "-workbench.action.quickOpenNavigatePreviousInFilePicker",      "when": "inFilesPicker && inQuickOpen"   },   {      "key": "ctrl+\\",      "command": "-workbench.action.splitEditor"   },   {      "key": "ctrl+q",      "command": "-workbench.action.quit"   },   {      "key": "ctrl+shift+tab",      "command": "-workbench.action.openPreviousRecentlyUsedEditorInGroup"   },   {      "key": "ctrl+tab",      "command": "workbench.action.terminal.focusNextPane",      "when": "terminalFocus"   },   {      "key": "ctrl+shift+i",      "command": "namespaceResolver.importAll",      "when": "editorTextFocus"   },   {      "key": "ctrl+alt+a",      "command": "-namespaceResolver.importAll",      "when": "editorTextFocus"   },   {      "key": "ctrl+shift+w",      "command": "workbench.action.closeAllGroups"   },   {      "key": "ctrl+k ctrl+shift+w",      "command": "-workbench.action.closeAllGroups"   },   {      "key": "alt+left",      "command": "editor.action.marker.prev"   },   {      "key": "ctrl+shift+p",      "command": "-workbench.action.quickOpenNavigatePreviousInFilePicker",      "when": "inFilesPicker && inQuickOpen"   },   {      "key": "ctrl+p",      "command": "-workbench.action.quickOpenNavigateNextInFilePicker",      "when": "inFilesPicker && inQuickOpen"   },   {      "key": "ctrl+shift+alt+right",      "command": "editor.action.addSelectionToNextFindMatch",      "when": "editorFocus"   },   {      "key": "ctrl+d",      "command": "-editor.action.addSelectionToNextFindMatch",      "when": "editorFocus"   },   {      "key": "ctrl+alt+right",      "command": "editor.action.moveSelectionToNextFindMatch",      "when": "editorFocus"   },   {      "key": "ctrl+k ctrl+d",      "command": "-editor.action.moveSelectionToNextFindMatch",      "when": "editorFocus"   },   {      "key": "ctrl+alt+left",      "command": "editor.action.moveSelectionToPreviousFindMatch"   },   {      "key": "ctrl+shift+c",      "command": "-workbench.action.terminal.openNativeConsole",      "when": "!terminalFocus"   },   {      "key": "ctrl+shift+alt+c",      "command": "copyRelativeFilePath",      "when": "!editorFocus"   },   {      "key": "ctrl+shift+alt+c",      "command": "-copyRelativeFilePath",      "when": "!editorFocus"   },   {      "key": "alt+right",      "command": "editor.emmet.action.nextEditPoint"   },   {      "key": "alt+left",      "command": "editor.emmet.action.prevEditPoint"   },   {      "key": "f6",      "command": "-workbench.action.debug.pause",      "when": "inDebugMode"   },   {      "key": "f6",      "command": "better-phpunit.run"   },   {      "key": "meta+k meta+r",      "command": "-better-phpunit.run"   },   {      "key": "ctrl+shift+f6",      "command": "better-phpunit.run-suite"   },   {      "key": "ctrl+[Quote]",      "command": "runInTerminal.run",      "args": {         "match": "\\.php$",         "cmd": "php ${relativeFile};"      },   },   {      "key": "shift+f7",      "command": "-editor.action.wordHighlight.prev",      "when": "editorTextFocus && hasWordHighlights"   },   {      "key": "f7",      "command": "-editor.action.diffReview.next",      "when": "isInDiffEditor"   },   {      "key": "ctrl+=",      "command": "-gotoLastEdit.goForward",      "when": "editorTextFocus"   },   {      "key": "ctrl+shift+/",      "command": "editor.action.blockComment",      "when": "editorTextFocus && !editorReadonly"   },   {      "key": "shift+alt+a",      "command": "-editor.action.blockComment",      "when": "editorTextFocus && !editorReadonly"   },   {      "key": "ctrl+alt+left",      "command": "-workbench.action.moveEditorToPreviousGroup"   },   {      "key": "ctrl+alt+right",      "command": "-workbench.action.moveEditorToNextGroup"   },   {      "key": "ctrl+shift+a",      "command": "editor.action.selectHighlights",      "when": "editorFocus"   },   {      "key": "ctrl+shift+l",      "command": "-editor.action.selectHighlights",      "when": "editorFocus"   },   {      "key": "ctrl+shift+alt+left",      "command": "-cursorColumnSelectLeft",      "when": "textInputFocus"   },   {      "key": "ctrl+shift+alt+right",      "command": "-cursorColumnSelectRight",      "when": "textInputFocus"   },   {      "key": "ctrl+0",      "command": "-workbench.action.focusSideBar"   },   {      "key": "ctrl+0",      "command": "workbench.action.zoomReset"   },   {      "key": "ctrl+numpad0",      "command": "-workbench.action.zoomReset"   },   {      "key": "ctrl+numpad_add",      "command": "-workbench.action.zoomIn"   },   {      "key": "f11",      "command": "-workbench.action.toggleFullScreen"   },   {      "key": "ctrl+numpad_subtract",      "command": "-workbench.action.zoomOut"   },   {      "key": "ctrl+shift+alt+left",      "command": "editor.action.addSelectionToPreviousFindMatch"   },   {      "key": "ctrl+alt+up",      "command": "editor.action.copyLinesUpAction",      "when": "editorTextFocus && !editorReadonly"   },   {      "key": "shift+alt+up",      "command": "-editor.action.copyLinesUpAction",      "when": "editorTextFocus && !editorReadonly"   },   {      "key": "ctrl+alt+down",      "command": "editor.action.copyLinesDownAction",      "when": "editorTextFocus && !editorReadonly"   },   {      "key": "shift+alt+down",      "command": "-editor.action.copyLinesDownAction",      "when": "editorTextFocus && !editorReadonly"   },   {      "key": "ctrl+alt+down",      "command": "-editor.action.insertCursorBelow",      "when": "editorTextFocus"   },   {      "key": "ctrl+k ctrl+c",      "command": "-editor.action.addCommentLine",      "when": "editorTextFocus && !editorReadonly"   },   {      "key": "ctrl+shift+a",      "command": "-editor.action.blockComment",      "when": "editorTextFocus && !editorReadonly"   },   {      "key": "ctrl+shift+alt+down",      "command": "-editor.action.copyLinesDownAction",      "when": "editorTextFocus && !editorReadonly"   },   {      "key": "ctrl+shift+alt+up",      "command": "-editor.action.copyLinesUpAction",      "when": "editorTextFocus && !editorReadonly"   },   {      "key": "ctrl+shift+i",      "command": "-workbench.action.toggleDevTools",      "when": "isDevelopment"   },   {      "key": "ctrl+shift+i",      "command": "-editor.action.formatDocument",      "when": "editorHasDocumentFormattingProvider && editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"   },   {      "key": "ctrl+shift+i",      "command": "-editor.action.formatDocument.none",      "when": "editorTextFocus && !editorHasDocumentFormattingProvider && !editorHasDocumentFormattingProvider && !editorReadonly"   },   {      "key": "ctrl+alt+s",      "command": "-namespaceResolver.sort",      "when": "editorTextFocus"   },   {      "key": "ctrl+o",      "command": "-workbench.action.files.openFile"   },   {      "key": "ctrl+alt+enter",      "command": "extension.openFileFromPath"   },   {      "key": "ctrl+q",      "command": "gotoLastEdit.goBack",      "when": "editorTextFocus"   },   {      "key": "ctrl+-",      "command": "-gotoLastEdit.goBack",      "when": "editorTextFocus"   },   {      "key": "ctrl+shift+q",      "command": "gotoLastEdit.goForward"   },   {      "key": "ctrl+n",      "command": "workbench.action.newWindow"   },   {      "key": "ctrl+shift+n",      "command": "-workbench.action.newWindow"   },   {      "key": "ctrl+n",      "command": "-workbench.action.files.newUntitledFile"   },   {      "key": "ctrl+shift+n",      "command": "explorer.newFolder"   },   {      "key": "ctrl+enter",      "command": "-notebook.cell.insertCodeCellBelow",      "when": "notebookCellListFocused && !inputFocus"   },   {      "key": "ctrl+shift+g",      "command": "-workbench.view.scm"   },   {      "key": "ctrl+i",      "command": "-editor.action.triggerSuggest",      "when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"   },   {      "key": "ctrl+shift+o",      "command": "workbench.action.showAllSymbols"   },   {      "key": "ctrl+t",      "command": "-workbench.action.showAllSymbols"   },   {      "key": "ctrl+u",      "command": "-cursorUndo",      "when": "textInputFocus"   },   {      "key": "ctrl+shift+e",      "command": "workbench.files.action.collapseExplorerFolders"   },   {      "key": "ctrl+k r",      "command": "-workbench.action.files.revealActiveFileInWindows"   },   {      "key": "ctrl+e",      "command": "workbench.action.files.revealActiveFileInWindows"   },   {      "key": "ctrl+e",      "command": "revealFileInOS",      "when": "!editorFocus"   },   {      "key": "ctrl+alt+r",      "command": "-revealFileInOS",      "when": "!editorFocus"   },   {      "key": "ctrl+k u",      "command": "editor.action.transformToUppercase"   },   {      "key": "ctrl+k l",      "command": "editor.action.transformToLowercase"   },   {      "key": "shift+alt+up",      "command": "editor.action.insertCursorAbove",      "when": "editorTextFocus"   },   {      "key": "ctrl+alt+up",      "command": "-editor.action.insertCursorAbove",      "when": "editorTextFocus"   },   {      "key": "shift+alt+down",      "command": "editor.action.insertCursorBelow"   },   {      "key": "ctrl+oem_4",      "command": "-editor.action.outdentLines",      "when": "editorTextFocus && !editorReadonly"   },   {      "key": "ctrl+1",      "command": "workbench.action.togglePanel"   },   {      "key": "ctrl+j",      "command": "-workbench.action.togglePanel"   },   {      "key": "ctrl+t",      "command": "workbench.action.terminal.openNativeConsole"   },   {      "key": "ctrl+abnt_c1",      "command": "editor.action.commentLine",      "when": "editorTextFocus && !editorReadonly"   },   {      "key": "ctrl+oem_2",      "command": "-editor.action.commentLine",      "when": "editorTextFocus && !editorReadonly"   },   {      "key": "shift+alt+e",      "command": "workbench.action.quickOpenNavigateNextInFilePicker",      "when": "inFilesPicker && inQuickOpen"   },   {      "key": "ctrl+e",      "command": "-workbench.action.quickOpenNavigateNextInFilePicker",      "when": "inFilesPicker && inQuickOpen"   },   {      "key": "ctrl+o",      "command": "workbench.action.gotoSymbol"   },   {      "key": "ctrl+shift+o",      "command": "-workbench.action.gotoSymbol"   }]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment