Last active
August 26, 2018 08:27
-
-
Save kambara/67eed73a8b7a45e03f53c9765c25d7f0 to your computer and use it in GitHub Desktop.
for VS Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
// 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