Skip to content

Instantly share code, notes, and snippets.

@h-otter
Created April 3, 2017 16:30
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 h-otter/27f5306d52a287cf27d8be2fedf4b701 to your computer and use it in GitHub Desktop.
Save h-otter/27f5306d52a287cf27d8be2fedf4b701 to your computer and use it in GitHub Desktop.
// vscode v1.10.2
// like bash, less
// @h-otter
[
// cursor like emacs
{ "key": "right", "command": "cursorRight",
"when": "editorTextFocus" },
{ "key": "ctrl+f", "command": "cursorRight",
"when": "editorTextFocus" },
{ "key": "alt+f", "command": "cursorWordRight",
"when": "editorTextFocus" },
{ "key": "left", "command": "cursorLeft",
"when": "editorTextFocus" },
{ "key": "ctrl+b", "command": "cursorLeft",
"when": "editorTextFocus" },
{ "key": "alt+b", "command": "cursorWordLeft",
"when": "editorTextFocus" },
{ "key": "up", "command": "cursorUp",
"when": "editorTextFocus && !suggestWidgetVisible" },
{ "key": "ctrl+p", "command": "cursorUp",
"when": "editorTextFocus && !suggestWidgetVisible" },
{ "key": "down", "command": "cursorDown",
"when": "editorTextFocus && !suggestWidgetVisible" },
{ "key": "ctrl+n", "command": "cursorDown",
"when": "editorTextFocus && !suggestWidgetVisible" },
{ "key": "home", "command": "cursorHome",
"when": "editorTextFocus" },
{ "key": "ctrl+a", "command": "cursorHome",
"when": "editorTextFocus" },
{ "key": "end", "command": "cursorEnd",
"when": "editorTextFocus" },
{ "key": "ctrl+e", "command": "cursorEnd",
"when": "editorTextFocus" },
{ "key": "pagedown", "command": "cursorPageDown",
"when": "editorTextFocus && !suggestWidgetVisible" },
{ "key": "pageup", "command": "cursorPageUp",
"when": "editorTextFocus && !suggestWidgetVisible" },
// { "key": "shift+alt+.", "command": "cursorBottom",
// "when": "editorTextFocus" },
// { "key": "shift+alt+,", "command": "cursorTop",
// "when": "editorTextFocus" },
// selection
{ "key": "ctrl+shift+a", "command": "editor.action.selectAll",
"when": "editorTextFocus" },
// find
{ "key": "ctrl+/", "command": "actions.find",
"when": "!findWidgetVisible" },
{ "key": "ctrl+/", "command": "editor.action.nextMatchFindAction",
"when": "findWidgetVisible" },
{ "key": "ctrl+shift+/", "command": "actions.find",
"when": "!findWidgetVisible" },
{ "key": "ctrl+shift+/", "command": "editor.action.previousMatchFindAction",
"when": "findWidgetVisible" },
// delete
{ "key": "ctrl+d", "command": "deleteRight",
"when": "editorTextFocus" },
{ "key": "alt+d", "command": "deleteWordRight",
"when": "editorTextFocus" },
// { "key": "ctrl+h", "command": "deleteLeft",
// "when": "editorTextFocus" },
// { "key": "ctrl+w", "command": "deleteWordLeft",
// "when": "editorTextFocus" },
// suggest
{ "key": "ctrl+r", "command": "editor.action.triggerSuggest",
"when": "editorTextFocus" },
// commentout
{ "key": "ctrl+;", "command": "editor.action.commentLine",
"when": "editorTextFocus" },
{ "key": "alt+;", "command": "editor.action.blockComment",
"when": "editorTextFocus" },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment