This a workaround to address coder/code-server#4694 and microsoft/vscode#135960
-
Open the keyboard selection menu by pressing the layout button in the bottom right corner
-
Select "Configure Keyboard Layout"
This openskeyboardLayout.json
with the following default content: -
Open the keyboard layout selection menu again and make sure the layout you want is selected (
de
in my case)
Double check that the layout was changed in the bottom right corner:
If it doesn't work on the first try (that's another bug), try switching between different layouts until it works. -
Open the Command Palette (
Ctrl
+P
on my system) and searchkey mappings
and select the "(JSON)" variant.
-
Double check the JSON that was generated in a new file matches the layout you want:
-
Copy everything
-
Paste into
keyboardLayout.json
(I left the comment as is) and save. -
Reload the page an test if it worked.
-
The custom layout should now be automatically selected and also show up in the keyboard layout selection menu: