# 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           | 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                       |
| Cmd ,           | General settings                        |
| Cmd Shift P     | Command palette                         |

## Chat

Shortcuts for the chat input box.

| Shortcut                                  | Action                       |
| ----------------------------------------- | ---------------------------- |
| Return                                    | Nudge (default)              |
| Ctrl Return                               | Queue message                |
| 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 Backspace                             | 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                |

## Inline Edit

| Shortcut            | Action             |
| ------------------- | ------------------ |
| Cmd K               | Open               |
| Cmd Shift K         | Toggle input focus |
| Return              | Submit             |
| Cmd Shift Backspace | Cancel             |
| Opt Return          | Ask quick question |

## Code Selection & Context

| Shortcut                        | Action                                                   |
| ------------------------------- | -------------------------------------------------------- |
| @                               | [@-mentions](https://cursor.com/docs/agent/prompting.md) |
| /                               | Shortcut Commands                                        |
| Cmd Shift L                     | Add selection to Chat                                    |
| Cmd Shift K                     | Add selection to Edit                                    |
| Cmd L                           | Add selection to new chat                                |
| Cmd M                           | Toggle file reading strategies                           |
| 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  |

## Terminal

| Shortcut   | Action                   |
| ---------- | ------------------------ |
| Cmd K      | Open terminal prompt bar |
| Cmd Return | Run generated command    |
| Escape     | Accept command           |

## Related

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


---

## Sitemap

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