Skip to content

Instantly share code, notes, and snippets.

@coconutpalm
Last active March 2, 2021 20:48
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 coconutpalm/5419dbf25748466ea76918f050ed8cc2 to your computer and use it in GitHub Desktop.
Save coconutpalm/5419dbf25748466ea76918f050ed8cc2 to your computer and use it in GitHub Desktop.
Windows-style VSCode key bindings
// Along with PyEclipse keymap makes VSCode much more comfortable to Win/Lin typists
[
{
"key": "ctrl+delete",
"command": "deleteWordPartRight",
"when": "editorTextFocus && !editor.readOnly"
},
{
"key": "ctrl+backspace",
"command": "deleteWordPartLeft",
"when": "editorTextFocus && !editor.readOnly"
},
{
"key": "shift+alt+up",
"command": "editor.action.smartSelect.grow",
"when": "editorTextFocus && !editor.readOnly"
},
{
"key": "shift+alt+down",
"command": "editor.action.smartSelect.shrink",
"when": "editorTextFocus && !editor.readOnly"
},
{
"key": "shift+alt+r",
"command": "editor.action.refactor",
"when": "editorTextFocus && !editor.readOnly"
},
{
"key": "ctrl+/",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editor.readOnly"
},
{
"key": "home",
"command": "cursorLineStart",
"when": "editorTextFocus"
},
{
"key": "ctrl+home",
"command": "cursorTop",
"when": "editorTextFocus"
},
{
"key": "shift+home",
"command": "cursorLineStartSelect",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+home",
"command": "cursorTopSelect",
"when": "editorTextFocus"
},
{
"key": "end",
"command": "cursorLineEnd",
"when": "editorTextFocus"
},
{
"key": "ctrl+end",
"command": "cursorBottom",
"when": "editorTextFocus"
},
{
"key": "shift+end",
"command": "cursorLineEndSelect",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+end",
"command": "cursorBottomSelect",
"when": "editorTextFocus"
},
{
"key": "ctrl+left",
"command": "cursorWordPartLeft",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+left",
"command": "cursorWordPartLeftSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+right",
"command": "cursorWordPartRight",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+right",
"command": "cursorWordPartRightSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+up",
"command": "editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+down",
"command": "editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+alt+down",
"command": "editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "ctrl+up",
"command": "scrollLineUp",
"when": "editorTextFocus"
},
{
"key": "ctrl+down",
"command": "scrollLineDown",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+r",
"command": "file-browser.open",
"when": ""
},
{
"key": "ctrl+shift+g",
"command": "editor.action.findReferences",
"when": "editorTextFocus"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment