> For the complete documentation index, see [llms.txt](https://docs.zerve.ai/zerve-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zerve.ai/zerve-docs/notebooks/keyboard-shortcuts.md).

# Keyboard shortcuts

Keyboard shortcuts for the notebook and canvas.

To see every shortcut in the app, open **Keyboard Hotkeys** from the project's right sidebar, where you can also search them.

Most shortcuts work in both the notebook and canvas views. Where a shortcut is different or only available in one view, it's noted.

## Blocks execution

These work in both views.

| Action                | Windows                    | Mac           |
| --------------------- | -------------------------- | ------------- |
| Run Block             | Ctrl + Enter               | ⌘ + ↩         |
| Force Run Block       | Alt + Enter                | ⌥ + ↩         |
| Run Up To Block       | Ctrl + ]                   | ⌘ + ]         |
| Force Run Up To Block | Ctrl + Alt + ]             | ⌘ + ⌥ + ]     |
| Run From Block        | Ctrl + \[                  | ⌘ + \[        |
| Force Run From Block  | Ctrl + Alt + \[            | ⌘ + ⌥ + \[    |
| Run All Blocks        | Alt + Ctrl + Enter         | ⌥ + ⌘ + ↩     |
| Force Run All Blocks  | Shift + Alt + Ctrl + Enter | ⇧ + ⌥ + ⌘ + ↩ |

**Force run** runs a block again even if its saved results are up to date. See [Running blocks](/zerve-docs/notebooks/blocks.md#running-blocks).

## Blocks managing

| Action                     | Windows                                | Mac                              | Available in |
| -------------------------- | -------------------------------------- | -------------------------------- | ------------ |
| Delete block(s)            | Delete or Backspace                    | ⌫                                | Both         |
| Copy Block(s)              | Ctrl + C                               | ⌘ + C                            | Both         |
| Paste Block(s)             | Ctrl + V                               | ⌘ + V                            | Both         |
| Find                       | Ctrl + F (or Ctrl + 2 in the notebook) | ⌘ + F (or ⌘ + 2 in the notebook) | Both         |
| Find & Replace             | Ctrl + Shift + F                       | ⌘ + ⇧ + F                        | Both         |
| Lint Active Block          | Shift + Alt + L                        | ⇧ + ⌥ + L                        | Both         |
| Lint All Blocks            | Shift + Alt + Ctrl + L                 | ⇧ + ⌥ + ⌘ + L                    | Both         |
| Tidy Blocks                | Ctrl + .                               | ⌘ + .                            | Canvas       |
| Activate Block             | Alt + A                                | ⌥ + A                            | Canvas       |
| Edit Active Block          | Alt + E                                | ⌥ + E                            | Canvas       |
| Rename Active Block        | Alt + R                                | ⌥ + R                            | Canvas       |
| Split Active Block         | Alt + S                                | ⌥ + S                            | Canvas       |
| Open Code & Variables Mode | Shift + Alt + F                        | ⇧ + ⌥ + F                        | Canvas       |
| New Block                  | Alt + N                                | ⌥ + N                            | Canvas       |
| New Block (Type Selection) | Shift + Alt + N                        | ⇧ + ⌥ + N                        | Canvas       |

## Navigation

These work in the canvas view.

| Action                      | Windows                                  | Mac                                  |
| --------------------------- | ---------------------------------------- | ------------------------------------ |
| Previous Block              | Ctrl + ←                                 | ⌘ + ←                                |
| Next Block                  | Ctrl + →                                 | ⌘ + →                                |
| Pan Up, Down, Left or Right | Arrow keys (hold Shift for double speed) | Arrow keys (hold ⇧ for double speed) |

## Zoom

| Action                    | Windows          | Mac       | Available in |
| ------------------------- | ---------------- | --------- | ------------ |
| Zoom In                   | Ctrl + =         | ⌘ + +     | Both         |
| Zoom Out                  | Ctrl + -         | ⌘ + -     | Both         |
| Zoom To Active Block      | Z                | Z         | Both         |
| Fit To View All Blocks    | Ctrl + 0         | ⌘ + 0     | Both         |
| Zoom Reset                | Alt + 0          | ⌥ + 0     | Canvas       |
| Code Font Size Zoom In    | Ctrl + Shift + > | ⌘ + ⇧ + . | Canvas       |
| Code Font Size Zoom Out   | Ctrl + Shift + < | ⌘ + ⇧ + , | Canvas       |
| Code Font Size Zoom Reset | Ctrl + Shift + ? | ⌘ + ⇧ + / | Canvas       |

## Miscellaneous

| Action                        | Windows                             | Mac                           | Available in |
| ----------------------------- | ----------------------------------- | ----------------------------- | ------------ |
| AI Agent                      | Alt + K                             | ⌥ + K                         | Both         |
| Download .ipynb File          | Ctrl + D                            | ⌘ + D                         | Both         |
| Toggle Left Sidebar           | Ctrl + M                            | ⌘ + M                         | Both         |
| Toggle Layers Sidebar         | Ctrl + 1                            | ⌘ + 1                         | Canvas       |
| Toggle Files Sidebar          | Ctrl + 2 (Ctrl + 1 in the notebook) | ⌘ + 2 (⌘ + 1 in the notebook) | Both         |
| Toggle Environments Sidebar   | Ctrl + 3                            | ⌘ + 3                         | Both         |
| Toggle Imports Sidebar        | Ctrl + 4                            | ⌘ + 4                         | Both         |
| Toggle Resources Sidebar      | Ctrl + 5                            | ⌘ + 5                         | Both         |
| Toggle Source Control Sidebar | Ctrl + 6                            | ⌘ + 6                         | Both         |
| Close/Deselect                | Esc                                 | Esc                           | Both         |

To switch agent modes in the agent composer, press **Shift+Tab**. See [Agent modes](/zerve-docs/agents-in-the-workspace/agent-modes.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.zerve.ai/zerve-docs/notebooks/keyboard-shortcuts.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
