Cursor Documentation
  1. Editor
Cursor Documentation
  • Get Started
    • Introduction
    • Installation
    • FAQ
  • Guides
    • Editor Migration
      • Migrate from VS Code
      • Migrate from JetBrains IDEs
    • Languages & Frameworks
      • JavaScript & TypeScript
      • iOS & macOS (Swift)
      • Java
  • Editor
    • AI Commit Message
    • Notepads (Beta)
    • Keyboard Shortcuts
    • Tab
      • Overview
      • Tab vs GitHub Copilot
      • Auto-import
      • Advanced Features
    • Chat
      • Overview
      • Agent mode
      • Ask mode
      • Custom modes
      • Tools
      • Apply
    • ⌘K
      • Overview
      • Terminal Cmd K
  • Context
    • Codebase Indexing
    • Rules for AI
    • Ignore Files
    • Model Context Protocol
    • @ Symbols
      • Overview
      • @Files
      • @Folders
      • @Code
      • @Docs
      • @Git
      • @Web
      • @Definitions
      • @Link
      • @Lint Errors
      • @Lint Errors
      • @Recent Changes
      • @Cursor Rules
      • @Notepads
      • @Summarized Composers
      • #Files
      • /command
  • Account
    • Plans & Usage
    • Dashboard
    • Billing
    • Business
      • Get Started
      • Members + Roles
      • Analytics
      • SSO
  • Settings
    • Models
    • Custom API Keys
    • Early Access Program
  • Troubleshooting
    • Common Issues
    • Troubleshooting Guide
    • Getting a Request ID
  1. Editor

Keyboard Shortcuts

A comprehensive guide to Cursor keyboard shortcuts for Chat, Composer, Tab and Agent
A high level overview of the keyboard shortcuts and keybindings in Cursor. You can see all keyboard shortcuts by pressing Cmd + R then Cmd + S.
To learn more about Keyboard Shortcuts in Cursor, check out the Key Bindings for VS Code as it serves as a good baseline for Cursor’s keybindings.
All of Cursor’s keybindings, including those for Cursor-specific features, can be remapped in the Keyboard Shortcuts settings page.
All Cmd keys can be replaced with Ctrl on Windows.

General#

ShortcutAction
Cmd + I (⌘I)Toggle Sidepanel (unless binded to mode)
Cmd + L (⌘L)Toggle Sidepan (unless binded to mode)
Cmd + . (⌘.)Open Mode Menu
Cmd + / (⌘/)Loop between AI models
Cmd + Shift + J (⌘⇧J)Open Cursor settings
Cmd + , (⌘,)Open General settings
Cmd + Shift + P (⌘⇧P)Open command palette

Chat#

These shortcuts work while focused on the chat input box.
ShortcutAction
EnterSubmit
Cmd + Shift + Backspace (⌘⇧⌫)Cancel generation
Cmd + L (⌘L) with code selectedAdd selected code as context
Cmd + Shift + L (⌘⇧L) with code selectedAdd selected code as context
Cmd + Enter (⌘⏎)Accept all changes
Cmd + Backspace (⌘⌫)Reject all changes
TabCycle to next message
Shift + Tab (⇧⇥)Cycle to previous message
Cmd + Alt + / (⌘⌥/)Open model toggle
Cmd + N (⌘N) / Cmd + R (⌘R)Create new chat
Cmd + Shift + K (⌘⇧K)Open composer as bar
Cmd + [ (⌘[)Open previous chat
Cmd + ] (⌘])Open next chat
Cmd + W (⌘W)Close chat
EscUnfocus the field

Cmd+K#

ShortcutAction
Cmd + KOpen
Cmd + Shift + KToggle input focus
EnterSubmit
Cmd + Shift + Backspace (⌘⇧⌫)Cancel
Option + EnterAsk quick question

Code Selection & Context#

ShortcutAction
@@-symbols
#Files
/Shortcut Commands
/Shortcut Commands
Cmd + Shift + LAdd selection to Chat
Cmd + Shift + KAdd selection to Edit
Cmd + LAdd selection to new chat
Cmd + MToggle file reading strategies
Cmd + →Accept next word of suggestion
Cmd + EnterSearch codebase in chat
Select code, Cmd + C, Cmd + VAdd copied reference code as context
Select code, Cmd + C, Cmd + Shift + VAdd copied code as text context

Tab#

ShortcutAction
TabAccept suggestion
Cmd + →Accept next word

Terminal#

ShortcutAction
Cmd + KOpen terminal prompt bar
Cmd + EnterRun generated command
EscAccept command
Modified at 2025-03-26 08:46:00
Previous
Notepads (Beta)
Next
Overview
Built with