Skip to content

Instantly share code, notes, and snippets.

@ilhamsj
Last active February 7, 2025 10:30
Show Gist options
  • Save ilhamsj/626403495ac5c28a9b49c8fb48f3ab8c to your computer and use it in GitHub Desktop.
Save ilhamsj/626403495ac5c28a9b49c8fb48f3ab8c to your computer and use it in GitHub Desktop.
modify cursor shortcut but keep vscode powerful shortcut extension
[
{
"key": "cmd+0",
"command": "composer.startComposerPrompt",
"when": "composerIsEnabled"
},
{
"key": "cmd+i",
"command": "-composer.startComposerPrompt",
"when": "composerIsEnabled"
},
{
"key": "shift+cmd+9",
"command": "selectAllSearchEditorMatches",
"when": "inSearchEditor"
},
{
"key": "shift+cmd+l",
"command": "-selectAllSearchEditorMatches",
"when": "inSearchEditor"
},
{
"key": "cmd+9",
"command": "addCursorsAtSearchResults",
"when": "fileMatchOrMatchFocus && searchViewletVisible"
},
{
"key": "shift+cmd+l",
"command": "-addCursorsAtSearchResults",
"when": "fileMatchOrMatchFocus && searchViewletVisible"
},
{
"key": "shift+cmd+9",
"command": "aichat.insertselectionintochat"
},
{
"key": "shift+cmd+l",
"command": "-aichat.insertselectionintochat"
},
{
"key": "cmd+8",
"command": "aipopup.action.modal.generate",
"when": "editorFocus && !composerBarIsVisible"
},
{
"key": "shift+cmd+k",
"command": "-aipopup.action.modal.generate",
"when": "editorFocus && !composerBarIsVisible"
},
{
"key": "shift+cmd+8",
"command": "composer.openAsBar"
},
{
"key": "shift+cmd+k",
"command": "-composer.openAsBar"
},
{
"key": "cmd+k",
"command": "-aipopup.action.modal.generate",
"when": "editorFocus && !composerBarIsVisible"
},
{
"key": "cmd+9",
"command": "aichat.newchataction"
},
{
"key": "cmd+l",
"command": "-aichat.newchataction"
},
{
"key": "cmd+l",
"command": "expandLineSelection",
"when": "textInputFocus"
},
{
"key": "cmd+p",
"command": "-expandLineSelection",
"when": "textInputFocus"
}
]

Why

  • keep vscode shortcut
  • keep cursor ai chat
  • modify cursor ai chat shortcut with cmd + 8/9/0 combination

How

  • cmd + shift + P
  • select keyboard shortcut json
  • place the json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment