Skip to Content
Core ConceptsKeyboard Shortcuts

Keyboard Shortcuts

Learn these shortcuts to speed up your pen.dev workflow.

Use Cmd and Option on macOS, or Ctrl and Alt on Windows and Linux. Focus the canvas for editing shortcuts. Text fields and your IDE can handle the same keys differently. Click the keyboard icon in the toolbar or press ? to open the in-app reference.

AI Chat

These shortcuts apply to the desktop app’s chat.

ShortcutAction
Cmd/Ctrl + KToggle AI chat
Cmd/Ctrl + TNew Agent tab
Ctrl + TabMove to next chat tab
Ctrl + Shift + TabMove to previous chat tab
/ Prompt history

Tools

ShortcutAction
VMove tool
KScale tool
HHand tool
RRectangle tool
OEllipse tool
A / FFrame tool
TText tool
NSticky note tool
PPen tool
Hold ZZoom tool

Editing

ShortcutAction
Cmd/Ctrl + CCopy selection to clipboard
Cmd/Ctrl + VPaste clipboard content
Cmd/Ctrl + Shift + CCopy selection as PNG
Cmd/Ctrl + Option/Alt + CCopy selection as HTML
Cmd/Ctrl + DDuplicate selection
Cmd/Ctrl + XCut selection
Delete/BackspaceDelete selection
Arrow keys / Shift + Arrow keysMove selection by 1px / 10px
Arrow keysSwap elements order in flex layout
Cmd/Ctrl + GGroup selected elements
Cmd/Ctrl + Shift + GUngroup
Cmd/Ctrl + Option/Alt + GWrap selection in a frame
Shift + AAdd flex layout to a selection
Shift + Option/Alt + ARemove flex layout from a selection
Shift + HFlip horizontal
Shift + VFlip vertical
Cmd/Ctrl + ZUndo
Cmd/Ctrl + Shift + ZRedo

Arrange

ShortcutAction
Option/Alt + WAlign selection to the top
Option/Alt + AAlign selection to the left
Option/Alt + SAlign selection to the bottom
Option/Alt + DAlign selection to the right
Option/Alt + HAlign selection to the horizontal center
Option/Alt + VAlign selection to the vertical middle
Cmd/Ctrl + [Send backward
Cmd/Ctrl + ]Bring forward
[Send to back
]Bring to front

Selection

ShortcutAction
Cmd/Ctrl + ASelect all
Cmd/Ctrl + ClickDirect select (deepest element under cursor)
Shift + ClickAdd to selection
Shift + EnterSelect parent of currently selected child element
EnterSelect children of currently selected parent element
EscClear selection

Components

ShortcutAction
Cmd/Ctrl + Option/Alt + KConvert element to a Component or Convert a Component back to a standard element
Cmd/Ctrl + Option/Alt + XDetach component instance
Option/Alt + Shift + RReplace inside instance

Canvas Navigation

ShortcutAction
Cmd/Ctrl + ScrollZoom
Spacebar + Drag / Middle mouse buttonPan canvas
Shift + ScrollHorizontal pan
Cmd/Ctrl + +Zoom in
Cmd/Ctrl + -Zoom out
Cmd/Ctrl + 0Zoom to 100%
Shift + 1Zoom to fit
Shift + 2Zoom to selection
Hold Z + ClickZoom in at pointer
Hold Z + Option/Alt + ClickZoom out at pointer
Hold Z + DragZoom to region

Path editing

These shortcuts apply while editing a path. See Drawing and editing.

ShortcutAction
Enter on a selected shapeEdit points
EnterFinish editing
PActivate Pen tool
VActivate Select points tool
XActivate Cut tool
Cmd/Ctrl + ASelect all points
Cmd/Ctrl + DDuplicate selection
Option/Alt + DragDrag off a duplicate
Cmd/Ctrl + JConnect selected points
Arrow keys / Shift + Arrow keysMove selected points by 1px / 10px
Delete/BackspaceDelete selected points, segments, or handles
Double-click a pointToggle smooth and corner
Cmd/Ctrl + Drag a pointPull symmetric handles
Option/Alt + Drag a handleBreak handle symmetry
Cmd/Ctrl + Drag a segmentBend into a curve
Cmd/Ctrl + Option/Alt + Drag a segmentBend without moving neighbors
Cmd/Ctrl + Double-click a segmentStraighten segment

With the Pen tool, click to add a point, Option/Alt + Click a segment to insert a point, or Option/Alt + Drag a point to move it without drawing.

Canvas Settings

ShortcutAction
Cmd/Ctrl + 'Toggle pixel grid
Cmd/Ctrl + Shift + 'Toggle snap to pixel grid

File Operations

In the desktop app:

ShortcutAction
Cmd/Ctrl + SSave file
Cmd/Ctrl + Shift + SSave As
Cmd/Ctrl + NOpen Dashboard
Cmd/Ctrl + Shift + NCreate new file
Cmd/Ctrl + OOpen file

In an IDE, use the IDE’s commands to create, open, and save files.

Last updated on