Skip to content

Instantly share code, notes, and snippets.

@shiopon01
Created February 5, 2025 17:36
Show Gist options
  • Save shiopon01/76f2324b52d4826c3edfb7ba632b8c30 to your computer and use it in GitHub Desktop.
Save shiopon01/76f2324b52d4826c3edfb7ba632b8c30 to your computer and use it in GitHub Desktop.
Cursor keybindings.json
// Place your key bindings in this file to override the defaults
[
{
"key": "shift+cmd+k",
"command": "-composer.openAsBar"
},
{
"key": "shift+cmd+k",
"command": "-aipopup.action.modal.generate",
"when": "editorFocus && !composerBarIsVisible"
},
{
"key": "cmd+i",
"command": "aipopup.action.modal.generate",
"when": "editorFocus && !composerBarIsVisible"
},
{
"key": "cmd+k",
"command": "-aipopup.action.modal.generate",
"when": "editorFocus && !composerBarIsVisible"
},
{
"key": "cmd+i",
"command": "cursorai.action.generateInTerminal",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "cmd+k",
"command": "-cursorai.action.generateInTerminal",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "shift+cmd+i",
"command": "composer.startComposerPrompt",
"when": "composerIsEnabled"
},
{
"key": "cmd+i",
"command": "-composer.startComposerPrompt",
"when": "composerIsEnabled"
},
{
"key": "shift+cmd+l",
"command": "-aichat.insertselectionintochat"
},
{
"key": "ctrl+cmd+i",
"command": "aichat.newchataction"
},
{
"key": "cmd+l",
"command": "-aichat.newchataction"
},
{
"key": "cmd+l",
"command": "expandLineSelection",
"when": "textInputFocus"
},
{
"key": "cmd+p",
"command": "-expandLineSelection",
"when": "textInputFocus"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment