draw.io (diagrams.net) keyboard shortcuts

The diagrams.net editor has keyboard commands for document work, canvas views, selection, shapes, labels, styling, and tables, plus modifier-and-pointer gestures for precise diagram construction. Focus and the selected object determine which command runs.

Windows, macOS, Linux · 112 shortcuts

Document and tools

Document commands save, print, undo, redo, or cancel. Single letters insert the five published basic elements when focus is on the canvas.

ActionWindowsmacOSLinux
SaveThe Shift alternative opens Save As.CtrlSorCtrlShiftSCmdSorCmdShiftSCtrlSorCtrlShiftS
UndoCtrlZCmdZCtrlZ
RedoCtrlYCmdShiftZCtrlShiftZ
PrintCtrlPCmdPCtrlP
Toggle the gridCtrlShiftGCmdShiftGCtrlShiftG
Toggle connection arrowsAltShiftAOptionShiftAAltShiftA
Ignore handles under the pointerAltHoldAltHoldAltHold
Add textAAA
Add a noteSSS
Add a rectangleDDD
Add an ellipseFFF
Add a lineCCC
Toggle Freehand modeXXX
Open the context menuCtrlorRight clickCmdorRight clickCtrlorRight click
Cancel editing or the current actionEscorCtrlEscorShiftEscEscorCtrlEscorShiftEscEscorCtrlEscorShiftEsc
Open in draw.ioCtrlShiftKCmdShiftKCtrlShiftK

Canvas and view

Wheel commands scroll or zoom the canvas. Fit and zoom commands change only the viewport, while Space or right-drag pans it.

ActionWindowsmacOSLinux
Zoom the canvas with the mouse wheelAltWheelorCtrlShiftWheelAltWheelorCtrlShiftWheelAltWheelorCtrlShiftWheel
Scroll the canvas verticallyWheelWheelWheel
Scroll the canvas horizontallyShiftWheelShiftWheelShiftWheel
Pan the drawing canvasSpaceDragorRight clickDragorMouse wheelDragSpaceDragorRight clickDragorMouse wheelDragSpaceDragorRight clickDragorMouse wheelDrag
Create or remove space in the diagramAltCtrlShiftDragOptionCmdShiftDragAltCtrlShiftDrag
Move or resize while ignoring the gridAltDragOptionDragAltDrag
Go to the canvas home positionHomeHomeHome
Refresh the canvasShiftHomeShiftHomeShiftHome
Reset the viewEndEndEnd
Fit the diagram to the windowEnterEnterEnter
Fit one pageHomeHomeHome
Fit two pagesCtrlShiftHCmdShiftHCtrlShiftH
Open custom zoomCtrlJCmdJCtrlJ
Zoom inCtrl+Cmd+Ctrl+
Zoom outCtrl-Cmd-Ctrl-
Reset zoomCtrl0Cmd0Ctrl0
Toggle the Layers panelCtrlShiftLCmdShiftLCtrlShiftL
Toggle the Outline panelCtrlShiftOCmdShiftOCtrlShiftO
Edit diagram metadataCtrlMCmdMCtrlM
Toggle the Format panelCtrlShiftPCmdShiftPCtrlShiftP
Edit vertex geometryCtrlShiftMCmdShiftMCtrlShiftM
Toggle TagsCtrlKCmdKCtrlK
Find or replaceCtrlFCmdFCtrlF
Toggle the Shapes panelCtrlShiftKCmdShiftKCtrlShiftK

Selection and movement

Tab cycles selection; cursor keys move selected cells or pan when nothing is selected. Control and Shift change movement to resizing or page selection.

ActionWindowsmacOSLinux
Select the next cellTabTabTab
Select the previous cellShiftTabShiftTabShiftTab
Select the parentAltShiftPorAltTabOptionShiftPorOptionTabAltShiftPorAltTab
Select children or siblingsAltShiftXorAltShiftCorAltShiftSOptionShiftXorOptionShiftCorOptionShiftSAltShiftXorAltShiftCorAltShiftS
Start a selection box or select intersecting shapesAltDragAltDragAltDrag
Select all or deselect allCtrlAorCtrlShiftACmdAorCmdShiftACtrlAorCtrlShiftA
Select all vertices or all edgesCtrlShiftIorCtrlShiftECmdShiftIorCmdShiftECtrlShiftIorCtrlShiftE
Toggle a shape's selection stateCtrlClickorShiftClickorCtrlDragorShiftDragCmdClickorShiftClickorCmdDragorShiftDragCtrlClickorShiftClickorCtrlDragorShiftDrag
Select the cell beneath the current cellAltClickOptionClickAltClick
Move a selected cell by one point or scrollArrow keysArrow keysArrow keys
Move a selected cell by one grid step or select a pageShiftArrow keysShiftArrow keysShiftArrow keys
Resize a selected cell by one pointCtrlArrow keysCmdArrow keysCtrlArrow keys
Resize a selected cell by one grid stepCtrlShiftArrow keysCmdShiftArrow keysCtrlShiftArrow keys
Clone and connect in the arrow directionAltShiftArrow keysOptionShiftArrow keysAltShiftArrow keys
Scroll the pageAltArrow keysOptionArrow keysAltArrow keys
Go to the previous pageCtrlShiftPage UpCmdShiftPage UpCtrlShiftPage Up
Go to the next pageCtrlShiftPage DownCmdShiftPage DownCtrlShiftPage Down

Shapes and arrangement

These commands act on selected cells. Rows that combine several closely related actions retain the exact alternatives grouped in the official one-page reference.

ActionWindowsmacOSLinux
Cut selected cellsCtrlXCmdXCtrlX
Copy selected cellsCtrlCCmdCCtrlC
Copy selected cells as an imageCtrlAltXCmdOptionXCtrlAltX
PasteCtrlVCmdVCtrlV
Paste unformatted textCtrlShiftVCmdShiftVCtrlShiftV
Group selected cellsCtrlGCmdGCtrlG
Ungroup selected cellsCtrlShiftUCmdShiftUCtrlShiftU
Duplicate selected cellsCtrlEnterorDCmdEnterorDCtrlEnterorD
Delete selected cellsBackspaceorDeleteBackspaceorDeleteBackspaceorDelete
Turn or rotate selected cells 90 degrees clockwiseCtrlRCmdRCtrlR
Maintain proportions while resizingShiftResizeShiftResizeShiftResize
Resize around the centerCtrlResizeCmdResizeCtrlResize
Collapse the selected containerCtrlHomeCmdHomeCtrlHome
Expand the selected containerCtrlEndCmdEndCtrlEnd
Enter or exit the selected groupCtrlShiftEndorCtrlShiftHomeCmdShiftEndorCmdShiftHomeCtrlShiftEndorCtrlShiftHome
Bring to front or send to backAltCtrlShiftForAltCtrlShiftBOptionCmdShiftForOptionCmdShiftBAltCtrlShiftForAltCtrlShiftB
Bring forward or send backwardCtrlShiftForCtrlShiftBCmdShiftForCmdShiftBCtrlShiftForCtrlShiftB
Copy or paste size or dataAltShiftForAltShiftVorAltShiftBorAltShiftEOptionShiftForOptionShiftVorOptionShiftBorOptionShiftEAltShiftForAltShiftVorAltShiftBorAltShiftE
Clear waypoints or edit a tooltip or noteAltShiftRorAltShiftTorAltShiftNOptionShiftRorOptionShiftTorOptionShiftNAltShiftRorAltShiftTorAltShiftN
Autosize selected cellsCtrlShiftYCmdShiftYCtrlShiftY
Clone, swap, or constrain while draggingCtrlDragorShiftDragCmdDragorShiftDragCtrlDragorShiftDrag
Move selected remote shapes and connectorsShiftAltDragShiftOptionDragShiftAltDrag
Increase or decrease selected text sizeCtrlShiftNum +orCtrlShiftNum -CmdShiftNum +orCmdShiftNum -CtrlShiftNum +orCtrlShiftNum -
Increase or decrease the selected shape sizeCtrlShiftArrow keysCmdShiftArrow keysCtrlShiftArrow keys
Clear all extra connector waypointsAltShiftROptionShiftRAltShiftR

Labels and styles

Label commands require text editing or a selected cell. Style commands copy appearance without copying the underlying shape content.

ActionWindowsmacOSLinux
Insert a new line in a formatted labelEnterorShiftEnterEnterorShiftEnterEnterorShiftEnter
Insert a line break, tab, or indent in a labelEnterorTabEnterorTabEnterorTab
Start editing the selected cell's labelEnterorF2EnterorF2EnterorF2
Stop editing the labelCtrlEnterorShiftTaborF2orEscCmdEnterorShiftTaborF2orEscCtrlEnterorShiftTaborF2orEsc
Toggle bold on selected label textCtrlBCmdBCtrlB
Toggle italic on selected label textCtrlICmdICtrlI
Toggle underline on selected label textCtrlUCmdUCtrlU
Apply superscript to selected label textCtrl.Cmd.Ctrl.
Apply subscript to selected label textCtrl,Cmd,Ctrl,
Clear the default styleCtrlShiftRCmdShiftRCtrlShiftR
Edit the selected shape or connector styleCtrlECmdECtrlE
Set the selected cell's style as the defaultCtrlShiftDCmdShiftDCtrlShiftD
Copy styleAltCOptionCAltC
Paste styleAltVOptionVAltV

Shape libraries and connectors

These commands combine a modifier with clicking or dragging a library shape or connector endpoint. Mac uses Option where Windows and Linux use Alt.

ActionWindowsmacOSLinux
Disable replace and connect behavior on drop targetsAltDragorAltShiftDragOptionDragorOptionShiftDragAltDragorAltShiftDrag
Insert and connect the selected library itemAltClickorAltShiftClickorAltCtrlClickOptionClickorOptionShiftClickorOptionCmdClickAltClickorAltShiftClickorAltCtrlClick
Replace the selected shape with a library shapeShiftClickShiftClickShiftClick
Connect a library shape to an unconnected selected edgeClickClickClick
Ignore a shape or connect to a fixed pointAltConnectorShiftConnectOptionConnectorShiftConnectAltConnectorShiftConnect
Clone a shapeCtrlDragCmdDragCtrlDrag

Table shapes

Table shortcuts require a selected row, column, cell, or entire table. Modifier-drag operations resize, duplicate, distribute, or overlay table contents.

ActionWindowsmacOSLinux
Resize a row or column borderShiftDragShiftDragShiftDrag
Resize all rows or columns equallyCtrlDragCmdDragCtrlDrag
Distribute all rows or columns equallyShiftCtrlDragShiftCmdDragShiftCtrlDrag
Duplicate the selected rowEnterEnterEnter
Duplicate a selected row or column while moving itCtrlDragCmdDragCtrlDrag
Duplicate the entire selected tableCtrlEnterCmdEnterCtrlEnter
Delete the selected row or columnDeleteDeleteDelete
Overlay a shape on a table cellAltDragOptionDragAltDrag

Make a printable draw.io (diagrams.net) sheet