Skip to content

Instantly share code, notes, and snippets.

@kambara kambara/keybindings.json
Last active Aug 26, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.