# Keyboard shortcuts

> Every built-in shortcut for the workbench, editor, Explorer, terminal and Agent.

Last updated: October 17, 2026
Source: https://codevre.com/docs/ide/keyboard-shortcuts

On a Mac, use **Cmd** wherever this page says **Ctrl**, unless noted. Every command and its shortcut is also listed in the command palette (Ctrl+Shift+P or F1).

## Why some shortcuts differ from VS Code

Browsers don't let web pages use Ctrl+N, Ctrl+W or Ctrl+T, so Codevre adds alternatives:

| Action | Shortcut | Alternative |
|---|---|---|
| New file | Ctrl+N (when the browser allows it) | **Ctrl+Shift+A** |
| Close tab | Ctrl+W (when the browser allows it) | **Ctrl+Shift+X** |

Ctrl+P opens Go to File instead of the browser's print dialog.

## Workbench

| Action | Shortcut |
|---|---|
| Command palette | Ctrl+Shift+P or F1 |
| Go to file | Ctrl+P (also Ctrl+E on Windows/Linux) |
| Go to line | Ctrl+G |
| Go to symbol | Ctrl+Shift+O |
| Open project | Ctrl+O |
| Save to Codevre | Ctrl+S |
| Save As | Ctrl+Shift+S |
| Settings | Ctrl+, |
| Toggle sidebar | Ctrl+B |
| Explorer | Ctrl+Shift+E |
| Search | Ctrl+Shift+F |
| Source Control | Ctrl+Shift+G |
| Terminal | Ctrl+\` |
| New terminal | Ctrl+Shift+\` |
| Full screen | F11 |
| Word wrap | Alt+Z |

## Editing

| Action | Shortcut |
|---|---|
| Undo / Redo | Ctrl+Z / Ctrl+Y (Cmd+Shift+Z on Mac) |
| Find / Replace | Ctrl+F / Ctrl+H (Cmd+Alt+F on Mac) |
| Toggle line comment | Ctrl+/ |
| Toggle block comment | Shift+Alt+A |
| Format document | Shift+Alt+F |
| Move line up / down | Alt+Up / Alt+Down |
| Copy line up / down | Shift+Alt+Up / Shift+Alt+Down |
| Expand / shrink selection | Shift+Alt+Right / Shift+Alt+Left |
| Add cursor above / below | Ctrl+Alt+Up / Ctrl+Alt+Down |
| Cursors at line ends | Shift+Alt+I |
| Add next occurrence | Ctrl+D |
| Select all occurrences | Ctrl+Shift+L |

## Explorer (when focused)

| Action | Shortcut |
|---|---|
| Move | Arrow keys, Page Up/Down, Home, End |
| Expand / collapse | Right / Left |
| Open | Enter or Space |
| Rename | F2 |
| Delete | Delete |
| Copy / paste | Ctrl+C / Ctrl+V |
| Copy path | Shift+Alt+C |
| Select all | Ctrl+A |
| Extend selection | Shift + navigation keys |

## Search sidebar

| Action | Shortcut |
|---|---|
| Match case | Alt+C |
| Whole word | Alt+W |
| Regular expression | Alt+R |

## Terminal

| Action | Shortcut |
|---|---|
| Copy selection, or interrupt (SIGINT) if nothing is selected | Ctrl+C |
| Always copy | Ctrl+Shift+C |
| Paste | Ctrl+V |
| Select all | Ctrl+Shift+A (Cmd+A on Mac) |
| Clear | Cmd+K (Mac) |
| Previous / next command | Ctrl+Up / Ctrl+Down |
| Scroll a page | Shift+Page Up / Shift+Page Down |
| Open a link | Click, or Ctrl+click for any link |

## Agent

| Action | Shortcut |
|---|---|
| Send | Enter |
| New line | Shift+Enter |
| Stop the run | Esc |
| Edit your last message | Up arrow in an empty composer |
| Switch Chat / Agent | Left / Right on the mode switch |

## Source Control

| Action | Shortcut |
|---|---|
| Commit | Ctrl+Enter in the message box |
