Last active
March 21, 2020 08:34
-
-
Save regalstreak/ffe06e51bf899ccd01707063cc42a297 to your computer and use it in GitHub Desktop.
Linux/Windows keybindings for vscode on Mac
This file contains 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+i", | |
"command": "editor.action.formatDocument", | |
"when": "editorHasDocumentFormattingProvider && editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "shift+alt+f", | |
"command": "-editor.action.formatDocument", | |
"when": "editorHasDocumentFormattingProvider && editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+d", | |
"command": "-editor.action.addSelectionToNextFindMatch", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "ctrl+d", | |
"command": "editor.action.copyLinesDownAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+alt+down", | |
"command": "-editor.action.copyLinesDownAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+y", | |
"command": "-workbench.debug.action.toggleRepl" | |
}, | |
{ | |
"key": "ctrl+shift+z", | |
"command": "redo", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+y", | |
"command": "-redo", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+y", | |
"command": "editor.action.deleteLines", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+k", | |
"command": "-editor.action.deleteLines", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+alt+l", | |
"command": "eslint.executeAutofix", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+c", | |
"command": "editor.action.clipboardCopyAction", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+shift+c", | |
"command": "workbench.action.terminal.copySelection", | |
"when": "terminalFocus && terminalTextSelected" | |
}, | |
{ | |
"key": "ctrl+v", | |
"command": "editor.action.clipboardPasteAction", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+v", | |
"command": "workbench.action.terminal.paste", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "ctrl+z", | |
"command": "editor.action.customEditor.undo", | |
"when": "focusedCustomEditorIsEditable && !inputFocus" | |
}, | |
{ | |
"key": "ctrl+z", | |
"command": "undo", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+z", | |
"command": "editor.action.webvieweditor.undo", | |
"when": "!editorFocus && !inputFocus && !webviewHasOwnEditFunctions && activeEditor == 'WebviewEditor'" | |
}, | |
{ | |
"key": "ctrl+s", | |
"command": "workbench.action.files.save" | |
}, | |
{ | |
"key": "ctrl+shift+z", | |
"command": "editor.action.customEditor.redo", | |
"when": "focusedCustomEditorIsEditable && !inputFocus" | |
}, | |
{ | |
"key": "ctrl+shift+z", | |
"command": "editor.action.webvieweditor.redo", | |
"when": "!editorFocus && !inputFocus && !webviewHasOwnEditFunctions && activeEditor == 'WebviewEditor'" | |
}, | |
{ | |
"key": "ctrl+a", | |
"command": "editor.action.selectAll", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+a", | |
"command": "editor.action.webvieweditor.selectAll", | |
"when": "!editorFocus && !inputFocus && activeEditor == 'WebviewEditor'" | |
}, | |
{ | |
"key": "ctrl+a", | |
"command": "list.selectAll", | |
"when": "listFocus && listSupportsMultiselect && !inputFocus" | |
}, | |
{ | |
"key": "ctrl+x", | |
"command": "editor.action.clipboardCutAction", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+x", | |
"command": "editor.action.webvieweditor.cut", | |
"when": "!editorFocus && !inputFocus && activeEditor == 'WebviewEditor'" | |
}, | |
{ | |
"key": "ctrl+x", | |
"command": "filesExplorer.cut", | |
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus" | |
}, | |
{ | |
"key": "ctrl+x", | |
"command": "execCut" | |
}, | |
{ | |
"key": "ctrl+/", | |
"command": "editor.action.commentLine", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+f", | |
"command": "actions.find" | |
}, | |
{ | |
"key": "ctrl+shift+f", | |
"command": "workbench.action.findInFiles" | |
}, | |
{ | |
"key": "ctrl+r", | |
"command": "editor.action.startFindReplaceAction" | |
}, | |
{ | |
"key": "ctrl+p", | |
"command": "workbench.action.quickOpen" | |
}, | |
{ | |
"key": "shift+ctrl+up", | |
"command": "editor.action.insertCursorAbove", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+cmd+up", | |
"command": "-editor.action.insertCursorAbove", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "shift+ctrl+down", | |
"command": "editor.action.insertCursorBelow", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+cmd+down", | |
"command": "-editor.action.insertCursorBelow", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+shift+right", | |
"command": "cursorWordEndRightSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "shift+alt+right", | |
"command": "-cursorWordEndRightSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+shift+left", | |
"command": "cursorWordStartLeftSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "shift+alt+left", | |
"command": "-cursorWordStartLeftSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+left", | |
"command": "cursorWordStartLeft", | |
"when": "textInputFocus", | |
}, | |
{ | |
"key": "ctrl+left", | |
"command": "cursorWordAccessibilityLeft", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+right", | |
"command": "cursorWordEndRight", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+right", | |
"command": "cursorWordAccessibilityRight", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+backspace", | |
"command": "workbench.action.terminal.deleteWordLeft", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "alt+backspace", | |
"command": "-workbench.action.terminal.deleteWordLeft", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "ctrl+backspace", | |
"command": "deleteWordLeft", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "alt+backspace", | |
"command": "-deleteWordLeft", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "cmd+down", | |
"command": "editor.action.moveLinesDownAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "cmd+up", | |
"command": "editor.action.moveLinesUpAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+\\", | |
"command": "editor.action.jumpToBracket", | |
"when": "editorTextFocus" | |
}, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment