CursorBeginner

How to Customize Cursor Keyboard Shortcuts

Open the keyboard shortcuts editor, rebind a conflicting key, and tweak the AI command keys to suit your hands.

5 minBeginner

Cursor ships with sensible defaults, but its AI commands sometimes collide with extension shortcuts you already use. The keyboard shortcuts editor lets you rebind anything, including the AI keys for inline edit and chat. This guide resolves a conflict and changes a binding.

What you need

  • Cursor installed
  • A shortcut you find awkward or that conflicts with an extension
  • Two minutes

Step 1: Open the shortcuts editor

Open the command palette and run Preferences: Open Keyboard Shortcuts. This opens a searchable table of every command and its current binding.

Command Palette
Cmd+Shift+P, then type:
$>Preferences: Open Keyboard Shortcuts
$

Step 2: Find the command

Search for the action you want to change. To rebind, double-click the row, press the new key combination, and Enter. If the keys are already used, Cursor warns you about the conflict so you can decide which command keeps them.

Cursor — Keyboard Shortcuts
Search: inline edit
Command Keybinding When
Cursor: Inline Edit Cmd+K editorFocus
Cursor: Open Chat Cmd+L —
Double-click a row to change the key
Searching and rebinding a single command.

Step 3: Edit the JSON directly

For full control, open the keybindings.json file from the small page-and-pencil icon in the top right of the editor. Each entry is a key, a command, and an optional when clause that limits where it applies.

keybindings.json
[
  {
    "key": "cmd+i",
    "command": "cursor.inlineEdit",
    "when": "editorTextFocus"
  },
  {
    "key": "cmd+k",
    "command": "-cursor.inlineEdit"
  }
]

Step 4: Test the new binding

Close settings, open a file, and press your new key. If nothing happens, check the when clause; a binding only fires when its condition is true, like the editor having focus.

The minus prefix removes a binding
A command prefixed with a minus in keybindings.json unbinds the default. Pair an add entry with a matching remove entry to fully move a shortcut instead of leaving the old key still active.

Result: inline edit now lives on a key that does not fight your other extensions, and the change persists in keybindings.json that you can sync or copy to another machine.

Watch related tutorials

Tags
#keybindings#shortcuts#settings#customization