I'm using a US keyboard for coding. But my VS Code installation is using a different shortcut layout. How can I switch to US keyboard shortcuts?
- Maybe you can find helpful information here: code.visualstudio.com/docs/getstarted/keybindings EDIT: I wonder why it wouldn't be US as this seems to be the default.John Archer– John Archer2019-12-12 10:44:51 +00:00Commented Dec 12, 2019 at 10:44
- 1It seems the shortcut layout is supposed to change with switching the keyboard layout, but if so it's not working. This seems to work fine in Windows 10, but not in Ubuntu which I'm using now.Lars Melander– Lars Melander2019-12-12 11:53:44 +00:00Commented Dec 12, 2019 at 11:53
- 1Don't know how it works in Ubuntu, but you are sure you have set the system wide keyboard layout settings in Ubuntu to US?John Archer– John Archer2019-12-12 11:55:28 +00:00Commented Dec 12, 2019 at 11:55
- Now I found this page: github.com/Microsoft/vscode/wiki/… Seems this is a known problem in Linux.Lars Melander– Lars Melander2019-12-12 11:56:14 +00:00Commented Dec 12, 2019 at 11:56
Add a comment |
2 Answers
I had the same issue as I code with DVORAK keyboard layout and setting "keyboard.dispatch": "keyCode" in VS Code solved my issue.
2 Comments
Renato Zannon
I've had to do this on github.dev, even though "normal" VS Code works fine for me
lindhe
NOTE: It seems this only works in Linux and Mac, not Windows! See this comment: github.com/microsoft/vscode/issues/…
Yes, turned out this page had the answer:
https://github.com/Microsoft/vscode/wiki/Keybinding-Issues#troubleshoot-linux-keybindings
Specifically, running
setxkbmap -layout us solved my problem.