Created
October 7, 2017 01:03
-
-
Save steelcowboy/afcf344591658d2dc8148f3bec85ec01 to your computer and use it in GitHub Desktop.
VS Code -- Caps Lock to Backspace
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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "capslock", | |
"command": "replacePreviousChar", | |
"args": { | |
"text": "", | |
"replaceCharCnt": 1}, | |
"when": "editorTextFocus" | |
} | |
] |
Hmm this maps to deleteLeft
... in the editor only, that's nice :- )
and I'm wondering, is there no way to map it to Backspace, always, in each and every situation.
(I'm using Vim mode & Colemak, so caps-lock/backspace could be useful in many many more cases)
Edit 1 month later, this works fine this far, with VSCode and Vim and Colemak:
"key": "capslock",
"command": "extension.vim_backspace",
"when": "editorTextFocus && vim.active && !inDebugRepl"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's good, but not perfect. Do you know how to remove a text that has been selected?
Edit: