Keyboard shortcuts
Every keyboard shortcut in PadCode's Builder, for an iPad with a keyboard: editing, selecting, arranging, Preview, panels and zoom.
With a keyboard attached to your iPad, you can do most things in the Builder without lifting your hands. Many shortcuts are the same as Xcode's, like ⌘R for Preview and ⌘0 for the left panel.
To see them all in PadCode, tap the keyboard button in the Builder's toolbar, next to Undo and Redo, or press ⌘/. In a narrow window, it's also in the ⋯ menu, as Keyboard Shortcuts.
#Where they work
Shortcuts work while the canvas has the keyboard: tap the canvas or select something first. While you type in a field, keys type, so a shortcut never changes your app by accident while you're writing.
The Arrange, App and View shortcuts are also in the Builder menu of iPadOS's menu bar.
The keys: ⌘ is Command, ⌥ is Option, ⇧ is Shift, ⌫ is Delete, esc is Escape.
#Edit
| Shortcut | Keys | What it does |
|---|---|---|
| Undo | ⌘Z | Takes back your last change. The toolbar's Undo button does the same. |
| Redo | ⇧⌘Z | Puts back the change you undid. The toolbar's Redo button does the same. |
| Copy | ⌘C | Copies the selected views. |
| Cut | ⌘X | Copies the selected views and removes them. |
| Paste | ⌘V | Adds the copied views, with the variables they're linked to with ⚡︎ or that their steps change. You can paste into another app too. |
| Duplicate | ⌘D | Adds a copy of the selected views. |
| Delete | ⌘⌫ | Deletes the selected views. Delete on its own doesn't, so a stray key never removes a view. |
| Select All Beside It | ⌘A | Selects the selected view and every view beside it, in the same container. With nothing selected, it selects every view at the top of the screen. |
| Deselect | esc | Selects nothing. |
#Select
| Shortcut | Keys | What it does |
|---|---|---|
| Select the View Above | ↑ | Selects the view before this one, in the same container. |
| Select the View Below | ↓ | Selects the view after this one, in the same container. |
| Select What It's In | ← | Selects the container the view is in. |
| Select What's Inside | → | Selects the first view inside the selected container. |
#Arrange
| Shortcut | Keys | What it does |
|---|---|---|
| Move Up | ⌥⌘[ | Moves the selected view one place up, or left, in its container. |
| Move Down | ⌥⌘] | Moves the selected view one place down, or right, in its container. |
| Wrap in Column | ⌘G | Puts the selected view, or the selected views side by side, into a new Column. |
| Wrap in Row | ⌥⌘G | Puts the selected view, or the selected views side by side, into a new Row. |
| Unwrap | ⇧⌘G | Takes the views out of the selected container and removes the container. |
| Save as Component | ⇧⌘S | Saves the selected views to My Components, to use in any app. See My Components. |
#App
| Shortcut | Keys | What it does |
|---|---|---|
| Preview | ⌘R | Runs your app in Preview. In Preview, esc goes back to editing, like Done editing. See Preview. |
| New Screen | ⌘N | Adds a screen to your app. See Screens. |
#View
| Shortcut | Keys | What it does |
|---|---|---|
| Show or Hide Left Panel | ⌘0 | Shows or hides the Library. |
| Show or Hide Right Panel | ⌥⌘0 | Shows or hides the Inspector. |
| Components | ⌘1 | Opens the Library's Components tab. |
| Layers | ⌘2 | Opens the Library's Layers tab. |
| Screens | ⌘3 | Opens the Library's Screens tab. |
| Assets | ⌘4 | Opens the Library's Assets tab. |
| Data & Logic | ⌘5 | Opens the Library's Data & Logic tab. |
| Style Tab | ⌥⌘1 | Opens the Inspector's Style tab. |
| Actions Tab | ⌥⌘2 | Opens the Inspector's Actions tab. |
| Data Tab | ⌥⌘3 | Opens the Inspector's Data tab. |
| Search Components | ⇧⌘L | Opens the Components tab and puts the cursor in its search field. |
| Zoom In | ⌘= | Zooms the canvas in a step: 25%, 50%, 75%, 100%, 125%, 150%, 200%, 300%, 400%. |
| Zoom Out | ⌘- | Zooms the canvas out a step. |
| Agent Mode | ⌘I | Swaps the Library and Inspector for the AI Agent's chat, beside the canvas, and back. On Free it shows what Pro adds. See The AI Agent. |
| Next Agent Mode | ⇧⇥ | In Agent mode, goes to the agent's next mode: Manual, Auto, then Plan. It works in the message box too. |
| Keyboard Shortcuts | ⌘/ | Shows this list in PadCode. |
The Library and Inspector shortcuts show their panel too, if it was hidden, and leave Agent mode.
#See also
- A tour of the editor
- The canvas
- Apple Pencil: Undo, Quick Actions and more from the Pencil's double-tap and squeeze.
- Layers
- Preview
- The AI Agent