Hello. Im trying Cursor AI and im loving it. However, the default CMD+K for getting AI help is fighting with the default VSCode’s CMD+K commands (the first half of many important commands is CMD+K, like commenting code, uncommenting code, clearing terminal, etc)
I tried overriding the default keybindings and setting them to CMD+U and my keybindings.json is looking like this:
// Place your key bindings in this file to override the defaults
[
{
"key": "shift+cmd+u",
"command": "aipopup.action.modal.generate",
"when": "editorFocus",
"args": { "invocationType": "toggle" }
},
{
"key": "cmd+u",
"command": "aipopup.action.modal.generate",
"when": "editorFocus",
"args": { "invocationType": "new" }
},
{
"key": "cmd+u",
"command": "cursorai.action.generateInTerminal",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
]
This is allowing to use CMD+U to use Cursor, but Cursor still responds to CMD+K. So this didn’t override the defaults, it just added new configs.
Any help is appreciated. Sticking to vanilla VSCode in the meantime