Skip to content

Instantly share code, notes, and snippets.

@kambara
Last active August 26, 2018 08:27
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 kambara/67eed73a8b7a45e03f53c9765c25d7f0 to your computer and use it in GitHub Desktop.
Save kambara/67eed73a8b7a45e03f53c9765c25d7f0 to your computer and use it in GitHub Desktop.
for VS Code
[
// Move cursor to top (Shift + <)
{
"key": "shift+cmd+,",
"command": "-editor.action.inPlaceReplace.up",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+,",
"command": "cursorTop",
"when": "textInputFocus"
},
// Move cursor to bottom (Shift + >)
{
"key": "shift+cmd+.",
"command": "-editor.action.inPlaceReplace.down",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+.",
"command": "cursorBottom",
"when": "textInputFocus"
},
// Use Ctrl + [ as Esc
{
"key": "ctrl+[",
"command": "cancelSelection",
"when": "editorHasSelection && textInputFocus"
},
{
"key": "ctrl+[",
"command": "closeFindWidget",
"when": "editorFocus && findWidgetVisible"
},
{
"key": "ctrl+[",
"command": "hideSuggestWidget",
"when": "suggestWidgetVisible && textInputFocus"
},
{
"key": "ctrl+[",
"command": "closeParameterHints",
"when": "editorTextFocus && parameterHintsVisible"
},
// Select text without arrow keys
// (Ctrl + Cmd + n|p|f|b|e|a)
{
"key": "ctrl+cmd+n",
"command": "cursorDownSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+cmd+p",
"command": "cursorUpSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+cmd+f",
"command": "-workbench.action.toggleFullScreen"
},
{
"key": "ctrl+cmd+f",
"command": "cursorRightSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+cmd+b",
"command": "cursorLeftSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+cmd+e",
"command": "cursorEndSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+cmd+a",
"command": "cursorHomeSelect",
"when": "textInputFocus"
},
// Disable Ctrl + Q for escape sequence of terminal
{
"key": "ctrl+q",
"command": "-workbench.action.quickOpenView"
},
{
"key": "ctrl+q",
"command": "-workbench.action.quickOpenNavigateNextInViewPicker",
"when": "inQuickOpen && inViewsPicker"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment