Cursor AI Keyboard Shortcuts

Complete Cursor AI keyboard shortcuts reference — 42 shortcuts across 6 categories. Quick reference cheat sheet for Windows, macOS & Linux.

Cursor is a VS Code fork, so the editor itself uses the VS Code keymap; what this page lists is the layer Cursor adds for its AI features — the side panel, inline edit, Tab completion and the terminal prompt bar. The table is the macOS keymap because that is how Cursor documents it; on Windows and Linux read Ctrl for Cmd and Alt for Option. The @-mentions and slash commands are on the prompts page.

Looking for @ mentions and CLI slash commands? They moved to the new Cursor prompt commands reference.

General (9)

ShortcutAction
Cmd + IToggle Sidepanel (unless bound to mode)
Cmd + LToggle Sidepanel (unless bound to mode)
Cmd + EToggle Agent layout
Cmd + .Mode Menu
Cmd + /Loop between AI models
Cmd + Shift + JCursor settings
Cmd + Shift + SpaceToggle Voice Mode
Cmd + ,General settings
Cmd + Shift + PCommand palette

Chat (17)

ShortcutAction
EnterNudge (default)
Ctrl + EnterQueue message
Cmd + EnterForce send message (Chat)
Cmd + Shift + BackspaceCancel generation (Chat)
Cmd + Shift + LAdd selected code as context (Chat)
Cmd + VAdd clipboard as context
Cmd + Shift + VAdd clipboard to input box
Cmd + BackspaceReject all changes
TabCycle to next message (Chat)
Shift + TabRotate between Agent modes
Cmd + Option + /Model toggle
Cmd + NNew chat
Cmd + TNew chat tab
Cmd + [Previous chat
Cmd + ]Next chat
Cmd + WClose chat
EscUnfocus field (Chat)

Inline Edit (5)

ShortcutAction
Cmd + KOpen (Inline Edit)
Cmd + Shift + KToggle input focus (Inline Edit)
EnterSubmit (Inline Edit)
Cmd + Shift + BackspaceCancel (Inline Edit)
Option + EnterAsk quick question

Code Selection & Context (6)

ShortcutAction
Cmd + Shift + LAdd selection to Chat (Code Selection & Context)
Cmd + Shift + KAdd selection to Edit (Code Selection & Context)
Cmd + LAdd selection to new chat (Code Selection & Context)
Cmd + MToggle file reading strategies
Cmd + RightAccept next word of suggestion (Code Selection & Context)
Cmd + EnterSearch codebase in chat (Code Selection & Context)

Tab (2)

ShortcutAction
TabAccept suggestion (Tab)
Cmd + RightAccept next word (Tab)

Terminal (3)

ShortcutAction
Cmd + KOpen terminal prompt bar (Terminal)
Cmd + EnterRun generated command (Terminal)
EscAccept command (Terminal)
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

Related Shortcut Pages

VS Code Windsurf Zed Editor GitHub Copilot Sublime Text Neovim / Vim

Search 18,500+ shortcuts across 268 platforms

Explore All Platforms Practice Shortcuts

Three entry points

Cursor has three ways to ask for code and each has a key. Cmd + L opens the side panel chat (Agent, Ask or Manual mode — Cmd + . switches, Shift + Tab rotates) with any selection attached. Cmd + K opens inline edit at the cursor for a change confined to the current file; Enter submits it and Cmd + Shift + Backspace cancels. Tab accepts the inline completion, and Cmd + Right accepts only the next word of it when the suggestion is half right. Cmd + Shift + L adds the current selection to the open chat without starting a new one.

Managing conversations

Cmd + N starts a new chat and Cmd + T a new chat tab; Cmd + [ and Cmd + ] move between chats and Cmd + W closes one. Ctrl + Enter queues a message to send after the current response, and Cmd + Backspace rejects every pending change from the agent at once. Cmd + / cycles through the configured models and Cmd + E toggles the agent layout, which gives the panel the full editor width for long diffs.

Terminal and settings

In the integrated terminal, Cmd + K opens a prompt bar where a plain-English request becomes a shell command; Cmd + Enter runs the generated command and Esc accepts it into the prompt without running. Cmd + Shift + J opens Cursor's own settings (models, rules, indexing), separate from the VS Code settings on Cmd + ,. Cmd + Shift + Space toggles voice mode.

Frequently asked questions

Do VS Code shortcuts work in Cursor?

Yes. Cursor is built on VS Code and keeps its keymap; only the AI features have new bindings.

What is the difference between Cmd + L and Cmd + K?

Cmd + L opens the side panel for conversation and multi-file agent work. Cmd + K edits inline at the cursor, or opens the prompt bar in the terminal.

How do I accept only part of a suggestion?

Press Cmd + Right to accept the next word; Tab accepts the whole suggestion.

Where are the @ mentions and slash commands?

On the Cursor prompt commands page, linked at the top of this page.

🤖 Ask AI about Cursor AI shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok
📜 Every shortcut on this page is taken from the official Cursor AI documentation — cursor.com
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.