# Keyboard shortcuts

The Machine Code keyboard shortcuts you'll use most.

Canonical page: https://themachine.myapps.ai/docs/code/shortcuts

Press **Ctrl+/** (**⌘/** on Mac) in Machine Code to see the full list. You
can change shortcuts in **Settings › Shortcuts**. On a Mac, use **⌘** where
this page says **Ctrl**.

![The Shortcuts list with a search box, showing the General shortcuts like Toggle command center and Search files](/images/docs/code/shortcuts.webp)

## Getting around

| Shortcut | What it does |
|---|---|
| **Ctrl+K** | Command center |
| **Ctrl+P** | Search files |
| **Ctrl+O** | Open a project |
| **Ctrl+N** | New task |
| **Ctrl+1** … **Ctrl+9** | Jump to a project's task |
| **Ctrl+[** / **Ctrl+]** | Previous / next task |
| **Ctrl+,** | Settings |
| **Ctrl+Shift+U** | Show what's running |

## Tabs and panels

| Shortcut | What it does |
|---|---|
| **Ctrl+T** | New tab |
| **Ctrl+W** | Close the current tab |
| **Alt+1** … **Alt+9** | Jump to a tab |
| **Alt+Shift+[** / **Alt+Shift+]** | Previous / next tab |
| **Ctrl+Shift+A** | New agent |
| **Ctrl+Shift+T** | New terminal |
| **Ctrl+Shift+B** | New browser |
| **Ctrl+Shift+G** | Changes |
| **Ctrl+Shift+E** | Files |
| **Ctrl+Alt+B** | Chat details |
| **Ctrl+B** | Left sidebar |
| **Ctrl+E** | Explorer sidebar |
| **Ctrl+.** | Both sidebars |
| **Ctrl+\\** | Split view |
| **Ctrl+Shift+F** | Focus mode |
| **Ctrl+Alt+T** | Cycle theme |

## Chat

| Shortcut | What it does |
|---|---|
| **Ctrl+L** | Focus the message box |
| **Shift+Tab** | Cycle the agent's mode |
| **Ctrl+D** | Start or stop dictation |
| **Escape** | Interrupt the agent |
| **Ctrl+Shift+P** | Pin the chat |
| **Ctrl+Shift+Backspace** | Archive the task |
| **Ctrl+Shift+Alt+S** | Snapshot your screen into the chat |

## Code editor

| Shortcut | What it does |
|---|---|
| **Ctrl+K** | Inline AI |
| **Tab** | Accept an inline suggestion |
| **Ctrl+S** | Save |
| **F12** / **Shift+F12** | Go to definition / find references |
| **F2** | Rename symbol |
| **Shift+Alt+F** | Format |
| **Ctrl+.** | Code actions and quick fixes |
| **Ctrl+Shift+F** | Search in files |
| **Ctrl+Shift+O** / **Ctrl+Alt+O** | Go to symbol in file / in workspace |
