# Keyboard Shortcuts

Overview of keyboard shortcuts in Cursor. See all keyboard shortcuts by pressing Cmd R then Cmd S or by opening command palette Cmd Shift P and searching for `Keyboard Shortcuts`.

Learn more about Keyboard Shortcuts in Cursor with [Key Bindings for VS Code](https://code.visualstudio.com/docs/getstarted/keybindings) as a baseline for Cursor's keybindings.

All Cursor keybindings, including Cursor-specific features, can be remapped in Keyboard Shortcuts settings.

## General

| Shortcut        | Action                                  |
| --------------- | --------------------------------------- |
| Cmd I           | Toggle Sidepanel (unless bound to mode) |
| Cmd L or Cmd K  | Toggle Sidepanel (unless bound to mode) |
| Cmd E           | Toggle Agent layout                     |
| Cmd .           | Mode Menu                               |
| Cmd /           | Loop between AI models                  |
| Cmd Shift J     | Cursor settings                         |
| Cmd Shift Space | Toggle Voice Mode (dictation)           |
| Cmd ,           | General settings                        |
| Cmd Shift P     | Command palette                         |

## Chat

Shortcuts for the chat input box.

| Shortcut                                   | Action                       |
| ------------------------------------------ | ---------------------------- |
| Return                                     | Queue message (default)      |
| Cmd Return when typing                     | Force send message           |
| Cmd Shift Backspace                        | Cancel generation            |
| Cmd Shift L with code selected             | Add selected code as context |
| Cmd V with code or log in clipboard        | Add clipboard as context     |
| Cmd Shift V with code or log in clipboard  | Add clipboard to input box   |
| Cmd Return with suggested changes          | Accept all changes           |
| Cmd Shift Backspace with suggested changes | Reject all changes           |
| Tab                                        | Cycle to next message        |
| Shift Tab                                  | Rotate between Agent modes   |
| Cmd Opt /                                  | Model toggle                 |
| Cmd N / Cmd R                              | New chat                     |
| Cmd T                                      | New chat tab                 |
| Cmd \[                                     | Previous chat                |
| Cmd ]                                      | Next chat                    |
| Cmd W                                      | Close chat                   |
| Escape                                     | Unfocus field                |

## Code Selection & Context

| Shortcut                        | Action                                                   |
| ------------------------------- | -------------------------------------------------------- |
| @                               | [@-mentions](https://cursor.com/docs/agent/prompting.md) |
| /                               | Shortcut Commands                                        |
| Cmd Shift L                     | Add selection to Chat                                    |
| Cmd L or Cmd K                  | Add selection to new chat                                |
| Cmd →                           | Accept next word of suggestion                           |
| Cmd Return                      | Search codebase in chat                                  |
| Select code, Cmd C, Cmd V       | Add copied reference code as context                     |
| Select code, Cmd C, Cmd Shift V | Add copied code as text context                          |

## Tab

| Shortcut | Action            |
| -------- | ----------------- |
| Tab      | Accept suggestion |
| Cmd →    | Accept next word  |

## Related

- [Keyboard shortcuts help](https://cursor.com/help/customization/keyboard-shortcuts.md)


---

## Sitemap

[Overview of all docs pages](/llms.txt)
