Cheat Sheet · Commands & Shortcuts
Cursor
The Cursor shortcuts that matter, in one place, inline edits, chat, the agent/composer, autocomplete and context controls. Shortcuts use Cmd on macOS and Ctrl on Windows/Linux.
Core shortcuts
Cmd/Ctrl + K | Inline edit, change the selected code with a prompt |
Cmd/Ctrl + L | Open the AI chat panel |
Cmd/Ctrl + I | Open Composer / Agent for multi-file changes |
Tab | Accept the AI autocomplete suggestion |
Cmd/Ctrl + → | Accept the next word of a suggestion |
Cmd/Ctrl + Enter | Ask a question about the whole codebase |
Esc | Reject / dismiss the current suggestion |
Context & chat
@ | Add context, files, folders, docs, web or symbols |
@Codebase | Let Cursor search the whole repo for relevant context |
@Web | Pull in live web results |
Cmd/Ctrl + Shift + L | Add the current selection to chat |
Cmd/Ctrl + Enter (chat) | Apply the suggested change to your files |
Run an agent without the setup
Spin up a hosted open-source AI agent with Creative Tim, bring your own key or run it on credits.
Frequently asked questions
What's the difference between Cmd+K and Composer?
Cmd+K does a focused inline edit on a selection or file. Composer (Cmd+I) is the agent for larger, multi-file changes.
How do I give Cursor more context?
Type @ to attach files, folders, docs, symbols or the web; use @Codebase to let it search the repo automatically.
Cursor or a terminal agent?
Cursor is great for in-editor edits; for autonomous, multi-file or CI work, pair it with a terminal agent, see our Claude Code vs Cursor comparison.
Compare Cursor