Skip to content

Instantly share code, notes, and snippets.

@d-akara
Last active September 30, 2017 00:08
Show Gist options
  • Save d-akara/7e61043a5a9d46af66bda1bea316f43a to your computer and use it in GitHub Desktop.
Save d-akara/7e61043a5a9d46af66bda1bea316f43a to your computer and use it in GitHub Desktop.
VS Code keybindings
// https://code.visualstudio.com/docs/customization/keybindings
[
{"key": "shift+ctrl+down" , "command": "editor.action.smartSelect.shrink" , "when" : ""},
{"key": "shift+ctrl+up" , "command": "editor.action.smartSelect.grow" , "when" : ""},
{"key": "ctrl+x" , "command": "editor.action.deleteLines" , "when" : "editorTextFocus"},
{"key": "ctrl+alt+." , "command": "bookmarks.jumpToNext" , "when" : "editorTextFocus"},
{"key": "ctrl+alt+," , "command": "bookmarks.jumpToPrevious" , "when" : "editorTextFocus"},
{"key": "alt+b l" , "command": "bookmarks.list" , "when" : "editorTextFocus"},
{"key": "alt+b c" , "command": "bookmarks.clear" , "when" : "editorTextFocus"},
{"key": "alt+b a" , "command": "bookmarks.listFromAllFiles" , "when" : "editorTextFocus"},
{"key": "alt+b b" , "command": "bookmarks.toggle" , "when" : "editorTextFocus"},
{"key": "ctrl+n" , "command": "workbench.action.files.newUntitledFile" , "when" : ""} ,
{"key": "shift+ctrl+n" , "command": "workbench.action.files.newFile" , "when" : ""} ,
{"key": "ctrl+alt+left" , "command": "editor.action.previousSelectionMatchFindAction" , "when" : "editorTextFocus"},
{"key": "ctrl+alt+right" , "command": "editor.action.nextSelectionMatchFindAction" , "when" : "editorTextFocus"},
{"key": "ctrl+l" , "command": "workbench.action.navigateBack" , "when" : "editorTextFocus"},
{"key": "ctrl+;" , "command": "workbench.action.navigateForward" , "when" : "editorTextFocus"},
{"key": "ctrl+up" , "command": "workbench.action.compareEditor.previousChange" , "when" : "textCompareEditorVisible"},
{"key": "ctrl+down" , "command": "workbench.action.compareEditor.nextChange" , "when" : "textCompareEditorVisible"},
{"key": "ctrl+up" , "command": "editor.action.marker.prev" , "when" : "markersNavigationVisible"},
{"key": "ctrl+down" , "command": "editor.action.marker.next" , "when" : "markersNavigationVisible"},
{"key": "ctrl+'" , "command": "editor.action.jumpToBracket" , "when" : "editorTextFocus"},
{"key": "ctrl+d" , "command": "editor.action.copyLinesDownAction" , "when" : "editorTextFocus"},
{"key": "alt+up" , "command": "editor.action.moveLinesUpAction" , "when" : "editorTextFocus"},
{"key": "alt+down" , "command": "editor.action.moveLinesDownAction" , "when" : "editorTextFocus"},
{"key": "shift+alt+up" , "command": "editor.action.insertCursorAbove" , "when" : "editorTextFocus"},
{"key": "shift+alt+down" , "command": "editor.action.insertCursorBelow" , "when" : "editorTextFocus"},
{"key": "ctrl+right" , "command": "navigator.wordRightEnd" , "when" : "editorTextFocus"},
{"key": "ctrl+left" , "command": "navigator.wordLeftBegin" , "when" : "editorTextFocus"},
{"key": "shift+ctrl+right" , "command": "cursorWordRightSelect" , "when" : "editorTextFocus"},
{"key": "shift+ctrl+left" , "command": "cursorWordLeftSelect" , "when" : "editorTextFocus"},
{"key": "shift+enter" , "command": "workbench.action.showCommands" , "when" : "!findInputFocussed"},
{"key": "ctrl+." , "command": "workbench.action.nextEditor" , "when" : ""},
{"key": "ctrl+," , "command": "workbench.action.previousEditor" , "when" : ""},
{"key": "shift+ctrl+." , "command": "workbench.action.moveEditorToNextGroup" , "when" : ""},
{"key": "shift+ctrl+," , "command": "workbench.action.moveEditorToPreviousGroup" , "when" : ""},
{"key": "shift+space" , "command": "workbench.action.openRecent" , "when" : ""},
{"key": "ctrl+z" , "command": "undo" , "when" : ""},
{"key": "ctrl+g" , "command": "editor.action.addSelectionToNextFindMatch" , "when" : ""},
{"key": "shift+ctrl+g" , "command": "cursorUndo" , "when" : ""},
{"key": "ctrl+f" , "command": "actions.find" , "when" : "!filesExplorerFocus"},
{"key": "shift+ctrl+f" , "command": "workbench.action.findInFiles" , "when" : ""},
{"key": "shift+ctrl+v" , "command": "clipring.selectAndPasteRingItem" , "when" : "editorTextFocus"},
{"key": "shift+cmd+v" , "command": "clipring.selectAndPasteRingItem" , "when" : "editorTextFocus"},
{"key": "cmd+c" , "command": "clipring.copyToRing" , "when" : ""},
{"key": "ctrl+c" , "command": "clipring.copyToRing" , "when" : ""},
{"key": "ctrl+v" , "command": "editor.action.clipboardPasteAction" , "when" : ""},
{"key": "alt+h" , "command": "editor.action.selectHighlights" , "when" : ""},
{"key": "shift+alt+h" , "command": "editor.action.selectAllMatches" , "when" : ""},
{"key": "ctrl+f" , "command": "filesExplorer.findInFolder" , "when" : "filesExplorerFocus"},
{"key": "alt+/" , "command": "workbench.action.focusNextGroup" , "when" : ""},
{"key": "ctrl+up" , "command": "navigator.fixedSpaceUp" , "when" : ""},
{"key": "ctrl+down" , "command": "navigator.fixedSpaceDown" , "when" : ""}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment