Can't input backslash.
See original GitHub issue- VSCode Version:Version: 1.49.0-insider
- OS Version: Windows_NT x64 10.0.19041 Tested with the latest insiders edition --> Yes.
Steps to Reproduce:
Not sure what caused this to happen but I used to be able to type the backslash but all of sudden it stopped working. Backslash works on any other input areas such as Chrome, windows search or wherever but it doesn’t work in VSCode ONLY. Tried reinstalling VSCode and also the insiders edition. I now have to copy and paste the backslash OR type it by pressing the Alt key + 92 from the num keypad. The pipe sign works without a problem in VSCode. This started with the stable version of VSCode first and when I was about to report this bug I noticed from the report template that I should check with the latest insider’s edition and when I first installed the insiders edition it worked but it stopped working again after initial setup (plugins). So as described in the template I tried running with all plugins disabled but problem still exists. I’m using an American layout keyboard from Corsair K70 MK.2. Please let me know if I need to provide more information. Thank you.
Does this issue occur when all extensions are disabled?: Yes
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
@hiredtocode The problem was the following:
It is possible that you have changed a keybinding from the UI and instead of choosing
Ctrl+\
, you inputted only\
.@sandy081 Could we please add a big warning in the keybindings editor when defining a keybinding without a modifier key?
@alexdima I think I found the issue here. I noticed that some commands didn’t have any
-
in front so I added to all of the missing ones and now the backslash works again.The ones that don’t have the
-
in the beginning of the commands were the ones that I changed shortcut keys before. So basically the ones with the-
are the commands that was set in default.So I guess there’s a little bug that don’t add
-
when changing shortcut keys my way so where’s what I do usually to change my keys:F1 > Open Keyboard shortcuts (not the JSON file) > Search for the
Command
orKeybinding
manually > double click on theKeybinding
column > press my wanted key combination > hitenter
. Occasionally, I right click and chooseChange when expression
menu to add underWhen
.Let me know if you need more details! Thanks again for your work. Much appreciated and I’m soooooo glad to have my backslash back!!