I am trying to use emacs keybindings in VSCode on a MacBook Pro (Ventura). I won't go through the entire process and issues I've had, but the end result is that it seems impossible to override the "Cut" option in VSCode on Mac. I've removed ALL Command + X
keybindings and ALL cut related keybindings execCut
, clipboardCutAction
and deleteLine
.
Even then, Command + X
will yank the whole line, empty or not. This is an issue for me as I am used to the Ctrl + X + S
save mode of emacs.
I have tried:
- Disabling all extensions
- Restarting VSCode
- Restarting the machine
- On my friends computer without any VSCode configurations
- Tried setting the dispatch to
keyCode
Here is the full keyboard debugging log when pressing Command + X
:
2023-09-02 11:13:03.943 [info] [KeybindingService]: / Soft dispatching keyboard event
2023-09-02 11:13:03.943 [info] [KeybindingService]: \ Keyboard event cannot be dispatched
2023-09-02 11:13:03.944 [info] [KeybindingService]: / Received keydown event - modifiers: [meta], code: MetaLeft, keyCode: 91, key: Meta
2023-09-02 11:13:03.944 [info] [KeybindingService]: | Converted keydown event - modifiers: [meta], code: MetaLeft, keyCode: 57 ('Meta')
2023-09-02 11:13:03.944 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2023-09-02 11:13:04.232 [info] [KeybindingService]: / Soft dispatching keyboard event
2023-09-02 11:13:04.233 [info] [KeybindingService]: | Resolving meta+X
2023-09-02 11:13:04.233 [info] [KeybindingService]: \ No keybinding entries.
2023-09-02 11:13:04.239 [info] [KeybindingService]: / Received keydown event - modifiers: [meta], code: KeyX, keyCode: 88, key: x
2023-09-02 11:13:04.239 [info] [KeybindingService]: | Converted keydown event - modifiers: [meta], code: KeyX, keyCode: 54 ('X')
2023-09-02 11:13:04.239 [info] [KeybindingService]: | Resolving meta+X
2023-09-02 11:13:04.239 [info] [KeybindingService]: \ No keybinding entries.
2023-09-02 11:13:04.628 [info] [KeybindingService]: + Storing single modifier for possible chord meta.
2023-09-02 11:13:04.928 [info] [KeybindingService]: + Clearing single modifier due to 300ms elapsed.
Thank you for any and all help!