question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't input backslash.

See original GitHub issue
Yes.
  • 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:open
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
alexdimacommented, Aug 30, 2020

@hiredtocode The problem was the following:

{
	"key": "oem_5",
	"command": "editor.emmet.action.splitJoinTag"
},

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?

1reaction
hiredtocodecommented, Aug 28, 2020

@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 or Keybinding manually > double click on the Keybinding column > press my wanted key combination > hit enter. Occasionally, I right click and choose Change when expression menu to add under When.

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!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

For those who don't have the backslash '\' and the or sign '|'
I found a neat little trick to attain any symbol you want. The windows keyboard has something called 'alt codes' that letter type...
Read more >
How can I type a backslash with no backslash key? - Super User
Press the alt key to the right of the space bar ( alt gr ), and the key above the enter key (which...
Read more >
6 Ways Type a \ Backslash on a British PC with a US Keyboard
Click START and type ONSCREEN KEYBOARD, then launch the onscreen keyboard and use your mouse to click the backslash (left of the Z...
Read more >
Why is my slash key not working on the command prompt ...
Usually it is because of a virus or malware. Press start button. Then type "msconfig.msc" in the search. Open it. Check if there...
Read more >
arduino leonardo - Can't type backslash (\) with Keyboard library
That sounds like you have a different keyboard layout set up at your PC than the Keyboard library has. I think it uses...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found