Zum Hauptinhalt springen

Commands & Shortcuts

Cursor has two surfaces with their own command sets: the IDE (Agent panel, Inline Edit, Tab) and the Cursor CLI (agent). In both, typing / opens a menu of slash commands and skills, and @ attaches context. This page is the reference for both surfaces, plus the terminal configuration you need for multi-line input in the CLI.

CLI slash commands

Type / in an interactive agent session to see the list. Commands below are grouped by purpose; the official reference is cursor.com/docs/cli/reference/slash-commands.

Session and navigation

CommandWhat it does
/clearStart a new chat session (aliases: /new, /new-chat, /newchat)
/resumeOpen recent chats and resume one
/forkFork the current chat into a new session
/rename <name>Rename the current chat session
/rewindJump back to a previous message (enable with rewind: true in cli-config.json if it is off)
/summarizeSummarize the conversation to reduce context (alias: /compress)
/copyCopy a previous user message to the clipboard
/copy-request-idCopy the last request ID (useful when reporting issues)
/copy-conversation-idCopy the current conversation ID
/openOpen the repository's Git root in the Cursor editor (alias: /cursor)
/quit, /exitExit the CLI

Modes and model

CommandWhat it does
/model [filter]Select a model. Press Tab to edit the filter
/plan [prompt]Switch to Plan mode, show the current plan, or submit a prompt in Plan mode
/askToggle Ask mode for read-only questions
/debug [prompt]Toggle Debug mode or submit a prompt in Debug mode
/goal [objective]Give the agent a long-lived objective it keeps working toward until complete. Rolling out; Ctrl+C pauses the goal
/run-everything [on|off|status]Toggle Run Everything (no per-command approval) or show its status (alias: /auto-run)
/max-modeToggle Max Mode on legacy request-based plans
/sandboxConfigure sandbox mode and network access

See Agent Modes for what Plan, Ask, and Debug do, and Security & Run Modes for Run Everything and the sandbox.

Shell and tools

CommandWhat it does
/shell [command]Enter Shell Mode and run a command directly (aliases: /sh, /run)
/mcp [list|list-tools] [identifier]Manage MCP servers and list tools for a server
/plugin [subcommand]Manage plugins and marketplaces
/bedrock [subcommand]Configure Amazon Bedrock when that feature is enabled

Display and configuration

CommandWhat it does
/configConfigure CLI settings interactively
/vimToggle Vim keybindings in the input area
/line-numbersToggle line numbers in code blocks
/show-thinkingToggle display of thinking blocks
/status-indicatorsToggle terminal title status indicators
/setup-terminalDetect your terminal and configure newline keybindings

Account and diagnostics

CommandWhat it does
/aboutShow CLI version, system, and account info (also copied to clipboard)
/logsShow the debug log path and copy it
/updateUpdate the CLI to the latest version
/help [command]Show help, or details for one command
/feedback <message>Send feedback to the Cursor team
/logoutSign out

Built-in skills invoked with /

Skills also live in the / menu, in both the IDE and the CLI. Cursor ships these built-in ones:

SkillWhat it does
/create-ruleCreates a Cursor rule with the right scope and frontmatter
/create-skillScaffolds an Agent Skill and its SKILL.md
/create-subagentCreates a custom subagent
/create-hookCreates a hook and updates hooks.json
/reviewPicks and runs the appropriate code-review agent
/review-bugbotReviews code for likely bugs with Bugbot
/review-securityReviews code for security vulnerabilities
/autopilotMonitors a pull request and addresses feedback, conflicts, and failing checks
/split-to-prsSplits a large change into smaller pull requests
/automateCreates Cursor Automations triggered by schedules or events
/loopRuns a prompt or skill repeatedly at an interval
/canvasCreates an interactive React artifact next to the conversation
/cursor-blameInvestigates AI-authored changes and the prompts that produced them
/sdkHelps build on the Cursor SDK
/statuslineConfigures the CLI status line
/update-cli-configUpdates ~/.cursor/cli-config.json
/update-cursor-settingsFinds and updates a Cursor or VS Code setting
/migrate-to-skillsConverts eligible dynamic rules and legacy slash commands into skills

Pressing Enter on a skill attaches it to one message. Pressing Option+Enter (Alt+Enter) instead turns it into a Custom Mode that stays active for the whole session. See Skills.

IDE-only slash commands

A few / commands exist in the editor rather than the CLI:

CommandWhat it does
/side [question]Open a side chat (optionally with a first prompt). See Managing Context
/in-cloudHand a task to a cloud subagent from the Agents Window. See Cloud Agents

IDE keyboard shortcuts

Cursor keeps VS Code's defaults and adds shortcuts for AI features. Mac keys are shown; on Windows and Linux replace Cmd with Ctrl and Opt with Alt. See every binding with Cmd+R then Cmd+S, or through the command palette (Cmd+Shift+P > Keyboard Shortcuts). Everything, including Cursor-specific bindings, can be remapped.

General

ShortcutAction
Cmd+I or Cmd+LToggle the Agent sidepanel (unless bound to a mode)
Cmd+EToggle Agent layout
Cmd+.Mode menu
Shift+TabRotate between Agent modes (Agent, Ask, Plan, Debug)
Cmd+/Cycle through AI models
Cmd+Shift+JCursor settings
Cmd+,General settings
Cmd+Shift+PCommand palette
Cmd+Shift+SpaceToggle Voice Mode

Agent chat input

ShortcutAction
ReturnSend (or nudge a running agent; the message is delivered at the next tool call)
Ctrl+ReturnQueue the message to run after the current task
Cmd+Return while typingForce send immediately, bypassing the queue
Cmd+Shift+BackspaceCancel generation
Cmd+Return with suggested changesAccept all changes
Cmd+BackspaceReject all changes
Cmd+Shift+L with code selectedAdd selection as context
Cmd+L with code selectedAdd selection to a new chat
Cmd+V with code or a log in the clipboardAdd clipboard as context
Cmd+Shift+V with code in the clipboardPaste clipboard into the input as text
Cmd+MToggle file reading strategies
TabCycle to next message
Cmd+Opt+/Model toggle
Cmd+N or Cmd+RNew chat
Cmd+TNew chat tab
Cmd+[ / Cmd+]Previous / next chat
Cmd+WClose chat
Shift+Cmd+SOpen a side chat seeded with the current transcript selection
EscapeUnfocus the input

Inline Edit (Cmd+K)

Inline Edit changes the selected code in place without opening the chat panel. Select code, press Cmd+K, describe the change, press Return. Follow-up instructions refine the same edit.

ShortcutAction
Cmd+KOpen Inline Edit on the selection (in the terminal: open the terminal prompt bar)
Cmd+Shift+KToggle input focus / add selection to Edit
ReturnSubmit
Opt+ReturnAsk a quick question about the selection instead of editing (type "do it" to apply a suggested change)
Cmd+Shift+BackspaceCancel
Cmd+L with the same selectionEscalate to Agent with the selection as context, for multi-file changes

User Rules and project rules do not apply to Inline Edit; they are Agent-only.

Tab

Tab is Cursor's autocomplete. It reads recent edits, surrounding code, and linter errors, and can edit multiple lines, add imports, and jump between files.

ShortcutAction
TabAccept the suggestion
Tab again after acceptingJump to the predicted next edit location (jump-in-file); a portal appears when the jump is in another file
Cmd+RightAccept the next word only
Escape (or keep typing)Reject

Click the Tab indicator in the status bar to snooze Tab, disable it globally, or disable it for specific file types. Remap the accept key by searching Accept Cursor Tab Suggestions in Keyboard Shortcuts.

Terminal

ShortcutAction
Cmd+KOpen the terminal prompt bar (describe a command in plain language)
Cmd+ReturnRun the generated command
EscapeAccept the command into the terminal without running it

Agents Window

ShortcutAction
Cmd+Shift+P > Open Agents WindowSwitch to the agent-first interface
Cmd+Shift+P > Open IDESwitch back to the editor
Cmd+K (in the Agents Window)Search across past agent transcripts
Cmd+F (inside a conversation)Search within the transcript
Cmd+P / Cmd+Shift+FSearch files / search all files without leaving the Agents Window

CLI keyboard shortcuts

ShortcutAction
Shift+TabRotate between Agent, Plan, and Ask
Enter while the agent worksSteer the active run at a safe boundary; press Enter again to interrupt
Shift+EnterInsert a newline (iTerm2, Ghostty, Kitty, Warp, Zed)
Ctrl+J or \ then EnterInsert a newline in any terminal, including tmux and SSH
Option+EnterInsert a newline after /setup-terminal (Apple Terminal, Alacritty, VS Code terminal)
ArrowUpCycle through previous prompts
Ctrl+RReview changes; i adds follow-up instructions, arrows scroll and switch files
Ctrl+OExpand truncated Shell Mode output
Ctrl+CCancel the current command or pause a /goal
Ctrl+D (twice)Exit
y / nApprove or reject a proposed terminal command
Tab on a permission promptAdd the command to the allowlist
Esc on empty inputLeave Shell Mode

Quick prefixes

PrefixWhat it does
/Slash commands and skills
@Attach files, folders, and other context
&Send the message to a Cloud Agent and continue there (& refactor the auth module and add tests)

Custom commands

Cursor's Customize page still lists Commands as a component: reusable Markdown prompts you invoke with / in Agent chat, which plugins can bundle. The current documentation no longer describes a dedicated .cursor/commands/ directory or file format; the documented way to create a reusable / command today is a skill with model invocation disabled:

---
name: release-notes
description: Draft release notes from the commits since the last tag.
disable-model-invocation: true
---

1. Run `git log $(git describe --tags --abbrev=0)..HEAD --oneline`.
2. Group the commits under Added, Changed, Fixed.
3. Write the result to CHANGELOG.md under a new heading and stop. Do not commit.

Save it as .cursor/skills/release-notes/SKILL.md and it appears as /release-notes. Because disable-model-invocation is true, Agent will not pull it in on its own; it runs only when you type the command. Existing user-level and workspace-level commands can be converted in bulk with /migrate-to-skills. Details in Skills.

@-symbols quick reference

SymbolAttaches
@file.ts, @src/components/A file or folder (type / after a folder to navigate deeper)
@TerminalsTerminal output
@ChatsContext from a previous conversation or side chat
@Commit (Diff of Working State)Uncommitted changes
@Branch (Diff with Main)The full branch diff
@BrowserState from the built-in browser
@rule-nameA manual rule from .cursor/rules/

Skip @ when you are not sure which files matter; Agent searches the codebase itself. Full detail in Managing Context.

Terminal setup for the CLI

Multi-line prompts are the main thing that needs configuration. Run /setup-terminal; it detects your terminal and prints instructions.

KeybindingWorks inNotes
Ctrl+JAll terminalsMost reliable, including tmux, screen, and SSH
\ then EnterAll terminalsUniversal alternative
Shift+EnteriTerm2, Ghostty, Kitty, Warp, ZedNative, no configuration
Option+EnterAfter /setup-terminalApple Terminal, Alacritty, VS Code integrated terminal

tmux and screen intercept Shift+Enter before it reaches the CLI, so use Ctrl+J there.

Manual configuration. Option+Enter needs the terminal to send \x1b\r:

# alacritty.toml
[keyboard]
bindings = [
{ key = "Return", mods = "Alt", chars = "\u001b\r" }
]
// VS Code keybindings.json, to make Shift+Enter work in the integrated terminal
{
"key": "shift+enter",
"command": "workbench.action.terminal.sendSequence",
"args": {"text": "\u001b[13;2u"},
"when": "terminalFocus"
}

Vim mode. Toggle with /vim or set it in ~/.cursor/cli-config.json:

{
"version": 1,
"editor": {"vimMode": true},
"permissions": {"allow": [], "deny": []}
}

Vim mode affects only the input area (normal/insert modes, hjkl, w/b, dd, cc, counts like 3w).

Theme. The CLI detects light or dark backgrounds automatically. Force one with export COLORFGBG="15;0" (dark) or "0;15" (light). In tmux, add set -g default-terminal "tmux-256color" and set -ag terminal-overrides ",xterm-256color:RGB" to .tmux.conf.

Shell integration. agent install-shell-integration adds integration to ~/.zshrc; agent uninstall-shell-integration removes it.

Compared with Claude Code

TopicCursorClaude Code
Compact the conversation/summarize (alias /compress)/compact [instructions]
New conversation/clear, /new/clear (aliases /reset, /new)
Fork/fork creates a new session; /side opens an attached side chat/fork (background copy), /branch, /subtask
Mode cyclingShift+Tab through Agent, Plan, Ask (Debug in IDE)Shift+Tab through permission modes (Normal, Auto-Accept, Plan)
Run a shell command inline/shell (/sh, /run) or Shell Mode! prefix
Send to the cloud& prefix/background, /autofix-pr, /teleport
Custom commandsSkills with disable-model-invocation: trueSkills in .claude/skills/
Rewind/rewind (CLI), checkpoints in the IDE/rewind, Esc Esc

See Claude Code Slash Commands & Shortcuts for the full Claude Code reference.