Skip to content

Instantly share code, notes, and snippets.

@tcodes0
Created February 23, 2019 04:29
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 tcodes0/b079f180566afe2741124064a40b1b2a to your computer and use it in GitHub Desktop.
Save tcodes0/b079f180566afe2741124064a40b1b2a to your computer and use it in GitHub Desktop.
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "alt+tab",
"command": "editor.action.reindentlines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+;",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+q",
"command": "editor.action.clipboardCutAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+w",
"command": "editor.action.clipboardCopyAction",
"when": "editorTextFocus && !editorReadonly"
},
// {
// "key": "alt+e",
// "command": "editor.action.clipboardPasteAction",
// "when": "editorTextFocus && !editorReadonly"
// },
// {
// "key": "ctrl+y",
// "command": "editor.action.clipboardPasteAction",
// "when": "editorTextFocus && !editorReadonly"
// },
{
"key": "ctrl+w",
"command": "editor.action.clipboardCutAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+alt+t",
"command": "-workbench.action.terminal.toggleTerminal"
},
{
"key": "cmd+/",
"command": "-editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+w",
"command": "-workbench.action.switchWindow"
},
{
"key": "cmd+f",
"command": "macros.findAndReplace",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+cmd+f",
"command": "-editor.action.startFindReplaceAction"
},
{
"key": "alt+cmd+/",
"command": "toggleFindRegex",
"when": "editorFocus"
},
{
"key": "alt+cmd+r",
"command": "-toggleFindRegex",
"when": "editorFocus"
},
{
"key": "alt+cmd+/",
"command": "toggleSearchRegex",
"when": "searchInputBoxFocus && searchViewletVisible"
},
{
"key": "alt+cmd+r",
"command": "-toggleSearchRegex",
"when": "searchInputBoxFocus && searchViewletVisible"
},
{
"key": "alt+cmd+e",
"command": "editor.action.replaceAll",
"when": "editorFocus && findWidgetVisible"
},
{
"key": "alt+cmd+enter",
"command": "-editor.action.replaceAll",
"when": "editorFocus && findWidgetVisible"
},
{
"key": "alt+cmd+e",
"command": "editor.action.replaceOne",
"when": "editorFocus && findWidgetVisible"
},
{
"key": "shift+cmd+1",
"command": "-editor.action.replaceOne",
"when": "editorFocus && findWidgetVisible"
},
{
"key": "alt+cmd+e",
"command": "search.action.replace",
"when": "matchFocus && replaceActive && searchViewletVisible"
},
{
"key": "shift+cmd+1",
"command": "-search.action.replace",
"when": "matchFocus && replaceActive && searchViewletVisible"
},
{
"key": "cmd+enter",
"command": "search.action.replaceAllInFile",
"when": "fileMatchFocus && replaceActive && searchViewletVisible"
},
{
"key": "shift+cmd+1",
"command": "-search.action.replaceAllInFile",
"when": "fileMatchFocus && replaceActive && searchViewletVisible"
},
{
"key": "cmd+enter",
"command": "search.action.replaceAllInFolder",
"when": "folderMatchFocus && replaceActive && searchViewletVisible"
},
{
"key": "shift+cmd+1",
"command": "-search.action.replaceAllInFolder",
"when": "folderMatchFocus && replaceActive && searchViewletVisible"
},
{
"key": "cmd+enter",
"command": "search.action.replaceAll",
"when": "replaceActive && searchViewletVisible && !findWidgetVisible"
},
{
"key": "alt+cmd+enter",
"command": "-search.action.replaceAll",
"when": "replaceActive && searchViewletVisible && !findWidgetVisible"
},
{
"key": "shift+cmd+enter",
"command": "-search.action.replaceAllInFile",
"when": "fileMatchFocus && replaceActive && searchViewletVisible"
},
{
"key": "shift+cmd+enter",
"command": "-search.action.replaceAllInFolder",
"when": "folderMatchFocus && replaceActive && searchViewletVisible"
},
{
"key": "cmd+enter",
"command": "-editor.action.insertLineAfter",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+enter",
"command": "editor.action.insertLineBefore",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+enter",
"command": "-editor.action.insertLineBefore",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+cmd+l",
"command": "editor.action.selectHighlights",
"when": "editorFocus"
},
{
"key": "ctrl+cmd+g",
"command": "-editor.action.selectHighlights",
"when": "editorFocus"
},
{
"key": "alt+d",
"command": "workbench.action.terminal.deleteWordRight",
"when": "terminalFocus"
},
{
"key": "alt+delete",
"command": "-workbench.action.terminal.deleteWordRight",
"when": "terminalFocus"
},
{
"key": "alt+s",
"command": "workbench.action.terminal.deleteWordLeft",
"when": "terminalFocus"
},
{
"key": "alt+s",
"command": "deleteWordLeft",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "alt+d",
"command": "deleteWordRight",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "alt+w",
"command": "workbench.action.terminal.copySelection",
"when": "terminalFocus && terminalTextSelected"
},
{
"key": "shift+alt+up",
"command": "-editor.action.copyLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+k cmd+c",
"command": "-editor.action.addCommentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+k cmd+c",
"command": "macros.commentDown",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+k",
"command": "-deleteAllRight",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+k",
"command": "macros.trueCtrlK",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+i",
"command": "-expandLineSelection",
"when": "textInputFocus"
},
{
"key": "shift+cmd+left",
"command": "workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus"
},
{
"key": "shift+cmd+left",
"command": "workbench.action.previousEditor"
},
{
"key": "shift+cmd+left",
"command": "-cursorHomeSelect",
"when": "textInputFocus"
},
{
"key": "shift+cmd+right",
"command": "-cursorEndSelect",
"when": "textInputFocus"
},
{
"key": "shift+cmd+right",
"command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus"
},
{
"key": "shift+cmd+right",
"command": "workbench.action.nextEditor"
},
{
"key": "cmd+e",
"command": "-actions.findWithSelection"
},
{
"key": "cmd+e",
"command": "editor.action.smartSelect.grow",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+cmd+right",
"command": "-editor.action.smartSelect.grow",
"when": "editorTextFocus"
},
// {
// "key": "cmd+v",
// "command": "workbench.action.terminal.paste",
// "when": "terminalFocus"
// },
// {
// "key": "ctrl+y",
// "command": "workbench.action.terminal.paste",
// "when": "terminalFocus"
// },
// {
// "key": "alt+e",
// "command": "workbench.action.terminal.paste",
// "when": "terminalFocus"
// },
{
"key": "cmd+y",
"command": "-redo"
},
{
"key": "cmd+v",
"command": "editor.action.clipboardPasteAction"
},
// {
// "key": "alt+e",
// "command": "editor.action.clipboardPasteAction",
// "when": "editorFocus && findInputFocussed && findWidgetVisible"
// },
// {
// "key": "ctrl+y",
// "command": "editor.action.clipboardPasteAction",
// "when": "editorFocus && findInputFocussed && findWidgetVisible"
// },
{
"key": "cmd+c",
"command": "editor.action.clipboardCopyAction",
"when": "editorFocus && findInputFocussed && findWidgetVisible"
},
{
"key": "alt+w",
"command": "editor.action.clipboardCopyAction",
"when": "editorFocus && findInputFocussed && findWidgetVisible"
},
{
"key": "down",
"command": "history.showNext",
"when": "editorFocus && findInputFocussed && findWidgetVisible"
},
{
"key": "alt+down",
"command": "-history.showNext",
"when": "editorFocus && findInputFocussed && findWidgetVisible"
},
{
"key": "down",
"command": "history.showNext",
"when": "terminalFindWidgetInputFocused && terminalFindWidgetVisible"
},
{
"key": "alt+down",
"command": "-history.showNext",
"when": "terminalFindWidgetInputFocused && terminalFindWidgetVisible"
},
{
"key": "up",
"command": "history.showPrevious",
"when": "editorFocus && findInputFocussed && findWidgetVisible"
},
{
"key": "alt+up",
"command": "-history.showPrevious",
"when": "editorFocus && findInputFocussed && findWidgetVisible"
},
{
"key": "up",
"command": "history.showPrevious",
"when": "terminalFindWidgetInputFocused && terminalFindWidgetVisible"
},
{
"key": "alt+up",
"command": "-history.showPrevious",
"when": "terminalFindWidgetInputFocused && terminalFindWidgetVisible"
},
{
"key": "cmd+k cmd+u",
"command": "-editor.action.removeCommentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+k cmd+u",
"command": "editor.action.transformToUppercase"
},
{
"key": "cmd+k cmd+l",
"command": "editor.action.transformToLowercase"
},
{
"key": "alt+cmd+r",
"command": "-text-transformer.reverse",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+c",
"command": "-text-transformer.camel",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+d",
"command": "-text-transformer.dashed",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+l",
"command": "-text-transformer.lower",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+z",
"command": "-text-transformer.underline",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+u",
"command": "-text-transformer.upper",
"when": "editorTextFocus"
},
{
"key": "ctrl+`",
"command": "workbench.action.terminal.focus",
"when": "!terminalFocus"
},
{
"key": "ctrl+`",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
},
{
"key": "ctrl+`",
"command": "-workbench.action.terminal.toggleTerminal"
},
{
"key": "cmd+k cmd+t",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "cmd+u",
"command": "editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+i",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+g",
"command": "-workbench.view.scm"
},
{
"key": "ctrl+shift+9",
"command": "workbench.view.scm"
},
{
"key": "cmd+k cmd+p",
"command": "extension.colorHelper.pick",
"when": "editorTextFocus"
},
{
"key": "cmd+k cmd+o",
"command": "workbench.action.focusPreviousGroup"
},
{
"key": "cmd+k cmd+d",
"command": "-editor.action.moveSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "cmd+k cmd+d",
"command": "git.openChange"
},
{
"key": "cmd+k cmd+m",
"command": "-workbench.extensions.action.showRecommendedKeymapExtensions"
},
{
"key": "cmd+k cmd+m",
"command": "workbench.action.maximizeEditor"
},
{
"key": "cmd+k cmd+e",
"command": "editor.action.previewDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "alt+f12",
"command": "-editor.action.previewDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "cmd+k cmd+y",
"command": "editor.action.peekTypeDefinition"
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment