Skip to content

Instantly share code, notes, and snippets.

@0xrohan10
Created August 7, 2025 14:24
Show Gist options
  • Select an option

  • Save 0xrohan10/2d27bb75315825dd714b790fcbf1cf1e to your computer and use it in GitHub Desktop.

Select an option

Save 0xrohan10/2d27bb75315825dd714b790fcbf1cf1e to your computer and use it in GitHub Desktop.
Rebind Cursor cmd+k to clear terminal
[
...
{
// 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