Created
August 7, 2025 14:24
-
-
Save 0xrohan10/2d27bb75315825dd714b790fcbf1cf1e to your computer and use it in GitHub Desktop.
Rebind Cursor cmd+k to clear terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| ... | |
| { | |
| // 1. Clear the integrated terminal with ⌘K | |
| "key": "cmd+k", | |
| "command": "workbench.action.terminal.clear", // VS Code’s built-in | |
| "when": "terminalFocus" | |
| }, | |
| { | |
| // 2. Un-bind Cursor’s AI hotkey from ⌘K *inside* the terminal | |
| "key": "cmd+k", | |
| "command": "-cursorai.action.generateInTerminal", // leading “-” removes it | |
| "when": "terminalFocus" | |
| }, | |
| { | |
| // 3. Re-bind that AI action to ⇧⌘K in the terminal | |
| "key": "shift+cmd+k", | |
| "command": "cursorai.action.generateInTerminal", | |
| "when": "terminalFocus" | |
| } | |
| ... | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment