Skip to content

Instantly share code, notes, and snippets.

@ilhamsj
Last active February 14, 2025 03:59
Show Gist options
  • Save ilhamsj/65d643b86df0865df0e4ac43035d63e9 to your computer and use it in GitHub Desktop.
Save ilhamsj/65d643b86df0865df0e4ac43035d63e9 to your computer and use it in GitHub Desktop.
cursor configuration
[
{
"key": "cmd+9",
"command": "composer.startComposerPrompt",
"when": "composerIsEnabled"
},
{
"key": "cmd+i",
"command": "-composer.startComposerPrompt",
"when": "composerIsEnabled"
},
{
"key": "shift+cmd+8",
"command": "selectAllSearchEditorMatches",
"when": "inSearchEditor"
},
{
"key": "shift+cmd+l",
"command": "-selectAllSearchEditorMatches",
"when": "inSearchEditor"
},
{
"key": "cmd+8",
"command": "addCursorsAtSearchResults",
"when": "fileMatchOrMatchFocus && searchViewletVisible"
},
{
"key": "shift+cmd+l",
"command": "-addCursorsAtSearchResults",
"when": "fileMatchOrMatchFocus && searchViewletVisible"
},
{
"key": "shift+cmd+8",
"command": "aichat.insertselectionintochat"
},
{
"key": "shift+cmd+l",
"command": "-aichat.insertselectionintochat"
},
{
"key": "cmd+7",
"command": "aipopup.action.modal.generate",
"when": "editorFocus && !composerBarIsVisible"
},
{
"key": "shift+cmd+k",
"command": "-aipopup.action.modal.generate",
"when": "editorFocus && !composerBarIsVisible"
},
{
"key": "shift+cmd+7",
"command": "composer.openAsBar"
},
{
"key": "shift+cmd+k",
"command": "-composer.openAsBar"
},
{
"key": "cmd+k",
"command": "-aipopup.action.modal.generate",
"when": "editorFocus && !composerBarIsVisible"
},
{
"key": "cmd+8",
"command": "aichat.newchataction"
},
{
"key": "cmd+l",
"command": "-aichat.newchataction"
},
{
"key": "cmd+l",
"command": "expandLineSelection",
"when": "textInputFocus"
},
{
"key": "cmd+p",
"command": "-expandLineSelection",
"when": "textInputFocus"
},
{
"key": "cmd+k cmd+down",
"command": "editor.foldAll",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+r cmd+0",
"command": "-editor.foldAll",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+/",
"command": "editor.foldAllBlockComments",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+r cmd+/",
"command": "-editor.foldAllBlockComments",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+r cmd+-",
"command": "-editor.foldAllExcept",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+8",
"command": "editor.foldAllMarkerRegions",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+r cmd+8",
"command": "-editor.foldAllMarkerRegions",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+up",
"command": "editor.unfoldAll",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+r cmd+j",
"command": "-editor.unfoldAll",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+right",
"command": "editor.unfoldAllExcept",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+r cmd+=",
"command": "-editor.unfoldAllExcept",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+9",
"command": "editor.unfoldAllMarkerRegions",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+r cmd+9",
"command": "-editor.unfoldAllMarkerRegions",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "shift+cmd+s",
"command": "-workbench.action.files.saveAs"
},
{
"key": "shift+cmd+s",
"command": "-workbench.action.files.saveLocalFile",
"when": "remoteFileDialogVisible"
},
{
"key": "shift+cmd+s",
"command": "workbench.view.scm",
"when": "workbench.scm.active"
},
{
"key": "ctrl+shift+g",
"command": "-workbench.view.scm",
"when": "workbench.scm.active"
},
{
"key": "shift+cmd+s",
"command": "workbench.view.scm",
"when": "workbench.scm.active && !gitlens:disabled && config.gitlens.keymap == 'chorded'"
},
{
"key": "ctrl+shift+g",
"command": "-workbench.view.scm",
"when": "workbench.scm.active && !gitlens:disabled && config.gitlens.keymap == 'chorded'"
},
{
"key": "cmd+k f",
"command": "workbench.action.closeFolder",
"when": "emptyWorkspaceSupport && workbenchState != 'empty'"
},
{
"key": "cmd+r f",
"command": "-workbench.action.closeFolder",
"when": "emptyWorkspaceSupport && workbenchState != 'empty'"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment