Code-server: Custom keybindings don't take effect until the keybindings.json file is saved on every page load

Created on 8 Mar 2019  路  4Comments  路  Source: cdr/code-server


  • code-server version: 1.31.1-100
  • OS Version: Windows 10 desktop, running on remote docker Ubuntu 18.04.1 LTS, downloading the release binary from the releases tab.

Steps to Reproduce

  1. Create a keyboard shortcut with a when=!isMac condition
    { "key": "ctrl+d",                "command": "editor.action.deleteLines",
                                         "when": "!isMac" },
  1. Try to use shortcut in the editor, it does nothing

Most helpful comment

Actually, after playing with this some more. I noticed that keyboard bindings do work, but they don't take effect until the keybindings file is saved once/edited. And I would have to do this every time the page is reloaded.

All 4 comments

Are you running with some kind of SSL certificate? (it's ok even if it's self-signed)

Yes, I'm running under https. After some more investigation, I realized that with code-server I have to explicitly disable default keybindings to use custom ones.

    { "key": "ctrl+d",                "command": "-editor.action.addSelectionToNextFindMatch"},

On regular vscode I do not have to do this.

Actually, after playing with this some more. I noticed that keyboard bindings do work, but they don't take effect until the keybindings file is saved once/edited. And I would have to do this every time the page is reloaded.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lshamis picture lshamis  路  3Comments

korzq picture korzq  路  3Comments

broady picture broady  路  3Comments

tecosaur picture tecosaur  路  3Comments

balazssoltesz picture balazssoltesz  路  3Comments