Skip to content

Loading custom key bindings for code-server #6324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
indoben opened this issue Jun 28, 2023 · 2 comments
Closed

Loading custom key bindings for code-server #6324

indoben opened this issue Jun 28, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@indoben
Copy link

indoben commented Jun 28, 2023

Referencing the instructions found here: link

I added the following lines to my startup script

    mkdir -p /home/coder/.local/share/code-server/User
    echo '[{"key": "ctrl+enter", "command": "workbench.action.terminal.runSelectedText"}]' > /home/coder/.local/share/code-server/User/keybindings.json

However, even after a full restart, the file appears where expected, but it is not being picked up by code-server. Is there a newer approach since this documentation was written?

@cdr-bot cdr-bot bot added the bug Something isn't working label Jun 28, 2023
@indoben
Copy link
Author

indoben commented Jul 11, 2023

Resolved this issue, the file location is actually here: /root/.local/share/code-server/User/keybindings.json.

Recommend that this be more clearly documented since the only reference I can find is this issue

@matifali matifali transferred this issue from coder/coder Jul 12, 2023
@code-asher
Copy link
Member

code-asher commented Jul 13, 2023 via email

yiliang114 pushed a commit to yiliang114/code-server that referenced this issue Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants