Skip to content

↑↓ moveEnter openEsc close

Inline edit with AI in Cursor

Cursor 2.1 · 50 shortcuts · checked Nov 2026 · Source: Anysphere docs

In Cursor, press Cmd+K (Mac), Ctrl+K (Windows, Linux). Works when: editor focused.

What else uses Cmd+K? · What else uses Ctrl+K?

More Cursor shortcuts: ai

ActionMacWindowsLinux
Open or close the AI pane (Agent)CmdLorCmdICtrlLorCtrlICtrlLorCtrlI
Accept a Tab suggestionTabTabTab
Accept the next word of a suggestionCmd→Ctrl→Ctrl→
Dismiss a suggestionEscEscEsc
Add the selection to the chatShiftCmdLCtrlShiftLCtrlShiftL
Accept all AI changesCmdEnterCtrlEnterCtrlEnter
Reject all AI changesCmdBackspaceCtrlBackspaceCtrlBackspace
Open the mode menu (Agent, Ask, Plan)Cmd.Ctrl.Ctrl.
Start a new chatCmdNCtrlNCtrlN
Cursor settingsShiftCmdJCtrlShiftJCtrlShiftJ

All 50 Cursor shortcuts