18

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?

4
  • 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. Commented Dec 12, 2019 at 10:44
  • 1
    It 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. Commented Dec 12, 2019 at 11:53
  • 1
    Don't know how it works in Ubuntu, but you are sure you have set the system wide keyboard layout settings in Ubuntu to US? Commented Dec 12, 2019 at 11:55
  • Now I found this page: github.com/Microsoft/vscode/wiki/… Seems this is a known problem in Linux. Commented Dec 12, 2019 at 11:56

2 Answers 2

43

I had the same issue as I code with DVORAK keyboard layout and setting "keyboard.dispatch": "keyCode" in VS Code solved my issue.

Sign up to request clarification or add additional context in comments.

2 Comments

I've had to do this on github.dev, even though "normal" VS Code works fine for me
NOTE: It seems this only works in Linux and Mac, not Windows! See this comment: github.com/microsoft/vscode/issues/…
11

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.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.