n8n keyboard shortcuts for Windows, Linux and Mac

Shortcuts of the n8n editor, from the n8n docs and the 2.42 release: workflow controls, canvas pan and zoom, node selection and editing, canvas groups, the node panel and the Code node editor. The first column is Windows and Linux, the second macOS, where the docs' Ctrl/Cmd means Cmd. Most canvas keys are single letters such as N, P and D, and zoom uses 0, 1, plus and minus unmodified. Touch gestures are left out.

123 shortcuts in 13 sections. Checked row by row against n8n Docs on . Edited by Jay.

Workflow controls 9

The n8n docs write the main modifier as Ctrl/Cmd in every row: Ctrl on Windows and Linux, Cmd on macOS.

Save, new workflow, publish, unpublish and the command bar are switched off when an instance runs in canvas-only mode.

ActionWindows / LinuxMac
New workflowNot available when the instance runs in canvas-only mode.Ctrl+Alt+NCmd+Option+N
Open workflowCtrl+OCmd+O
Save workflowRuns a manual save, the only way to save on instances with autosave turned off.Ctrl+SCmd+S
UndoCtrl+ZCmd+Z
RedoCtrl+Shift+ZCmd+Shift+Z
Publish workflowDoes nothing when n8n is deployed in canvas-only mode.Ctrl+PCmd+P
Unpublish workflowSwitched off, like publishing, on canvas-only deployments.Ctrl+UCmd+U
Command barSearches actions and resources; what it lists depends on the open view and your permissions.Ctrl+KCmd+K
Tidy up workflowAlt+Shift+TOption+Shift+T

Execution and debug 7

ActionWindows / LinuxMac
Run workflowCtrl+EnterCmd+Return
Pin/Unpin dataKeeps the selected node's output so later test runs reuse it instead of fetching fresh data.PP
Activate/DeactivateSwitches the enabled state of every selected node.DD
Start chatCC
Toggle logs panelLL
Toggle logs input paneII
Toggle logs output paneOO

Canvas navigation 9

ActionWindows / LinuxMac
Pan canvasHold Space and drag with the mouse to slide the view.Space+DragSpace+Drag
Pan with middle buttonMiddle-click+DragMiddle-click+Drag
Pan with left buttonWithout the modifier, a left-button drag draws a selection box instead.Ctrl+DragCmd+Drag
Pan with modifier and middle buttonCtrl+Middle-click+DragCmd+Middle-click+Drag
Zoom inEither key works, so Shift is not needed for the plus sign.+or=+or=
Zoom out-or_-or_
Reset zoomReturns the canvas to its default magnification.00
Zoom to fitScales the view until every node is visible.11
Zoom with mouse wheelCtrl+ScrollCmd+Scroll

Selecting nodes 9

ActionWindows / LinuxMac
Select allCtrl+ACmd+A
Box-select nodesDragging on empty canvas marks every node inside the rectangle.DragDrag
Add node to selectionBuilds a selection one node at a time.Ctrl+ClickCmd+Click
Select sibling aboveUpUp
Select sibling belowDownDown
Select node to the leftLeftLeft
Select node to the rightRightRight
Select upstream nodesExtends the selection to everything on the left side of the current node.Shift+LeftShift+Left
Select downstream nodesExtends the selection to everything on the right side of the current node.Shift+RightShift+Right

Editing nodes 15

ActionWindows / LinuxMac
Open node detailsDouble-clickDouble-click
Open selected nodeKeyboard equivalent of double-clicking the node.EnterReturn
Open sub-workflow in new tabCtrl+Double-clickCmd+Double-click
Open selected sub-workflowNeeds a sub-workflow node selected; the target opens in another browser tab.Ctrl+Shift+OCmd+Shift+O
Copy nodeCtrl+CCmd+C
Cut nodeCtrl+XCmd+X
Paste nodeCtrl+VCmd+V
Duplicate nodeCtrl+DCmd+D
Delete nodeEither key removes whatever is selected on the canvas.DeleteorBackspaceDeleteorBackspace
Rename nodeF2F2
Replace nodeRR
Add sticky noteShift+SShift+S
Extract to sub-workflowActs on the selected nodes and is disabled where sub-workflow conversion is switched off.Alt+XOption+X
Copy production URLApplies to the last selected node.Alt+UOption+U
Copy test URLReads the address from the last selected node.Alt+Shift+UOption+Shift+U

Canvas groups 5

ActionWindows / LinuxMac
Group selected nodesCtrl+GCmd+G
Ungroup nodesCtrl+Shift+GCmd+Shift+G
Expand groupsOpens every group, or just the selected ones when groups or nodes inside them are selected.Alt+GOption+G
Collapse groupsCloses every group unless a selection narrows it to the selected groups.Alt+Shift+GOption+Shift+G
Rename groupOn a collapsed group this opens a dialog; an expanded group is renamed inline.SpaceSpace

Node panel and parameters 8

Tab used to open the node panel. In release 2.42.0 the canvas key map only routes Tab to a deprecation notice, and N is the shortcut.

ActionWindows / LinuxMac
Open node panelReplaces Tab, which current releases treat as deprecated for this.NN
Add highlighted nodeEnterReturn
Close node panelEscEsc
Toggle categoryOn a category row the key folds or unfolds it, or steps into a subcategory.EnterReturn
Expand categoryRightRight
Collapse categoryInside a subcategory it goes back to the parent list.LeftLeft
Switch to expression modeWorks only while the parameter field has nothing typed in it.==
Toggle focus panelShift+FShift+F

Code editor navigation 16

ActionWindows / LinuxMac
Move cursor leftLeftLeftorCtrl+B
Move cursor rightRightRightorCtrl+F
Move cursor upUpUporCtrl+P
Move cursor downDownDownorCtrl+N
Move one word leftCtrl+LeftOption+Left
Move one word rightCtrl+RightOption+Right
Move to line startHomeCmd+LeftorCtrl+A
Move to line endEndCmd+RightorCtrl+E
Move to document startCtrl+HomeCmd+Up
Move to document endCtrl+EndCmd+Down
Move page upPage UpPage Up
Move page downPage DownPage Down
Go to matching bracketCtrl+Shift+\Cmd+Shift+\
Go to lineUses the Ctrl key on a Mac as well.Ctrl+GCtrl+G
Go to next diagnosticF8F8
Go to previous diagnosticShift+F8Shift+F8

Code editor selection and cursors 10

ActionWindows / LinuxMac
Extend selectionShift turns any cursor movement key, including Home, End and the page keys, into a selection.Shift+Arrow keysShift+Arrow keys
Select all textCtrl+ACmd+A
Select lineCtrl+LCmd+L
Select next occurrenceAdds the following match of the selected text as another selection.Ctrl+DCmd+D
Select all occurrencesSelects every match of the selected text at once.Ctrl+Shift+LCmd+Shift+L
Add cursor with a clickAlt+ClickOption+Click
Add cursor aboveLinux uses Shift + Alt + Up for this.Ctrl+Alt+UpCmd+Option+Up
Add cursor belowLinux uses Shift + Alt + Down for this.Ctrl+Alt+DownCmd+Option+Down
Cursors at line endsWorks on a multi-line selection: each selected line gets its own cursor.Alt+Shift+IOption+Shift+I
Return to one cursorEscEsc

Code editor editing 15

Linux shares the Windows keys in the Code editor with three exceptions: Format document is Ctrl + Shift + I, adding a cursor above or below is Shift + Alt + Up or Down, and copying a line up or down has no binding.

ActionWindows / LinuxMac
New indented lineEnterReturn
Undo editCtrl+ZCmd+Z
Redo editCtrl+YCmd+Y
Undo selectionSteps back the last cursor or selection change and leaves the text alone.Ctrl+UCmd+U
Copy selectionCtrl+CCmd+C
Cut selectionCtrl+XCmd+X
Paste clipboard textCtrl+VCmd+V
Delete character leftBackspaceBackspace
Delete character rightDeleteDelete
Delete word leftCtrl+BackspaceOption+Backspace
Delete word rightCtrl+DeleteOption+Delete
Delete lineCtrl+Shift+KCmd+Shift+K
Indent moreTaborCtrl+]Cmd+]
Indent lessShift+TaborCtrl+[Cmd+[
Format documentLinux uses Ctrl + Shift + I; the Mac key is taken from the release keymap.Alt+Shift+FOption+Shift+F

Code editor lines and comments 8

ActionWindows / LinuxMac
Move line upAlt+UpOption+Up
Move line downAlt+DownOption+Down
Copy line upNot bound on Linux, where this chord adds a cursor above.Alt+Shift+UpOption+Shift+Up
Copy line downNot bound on Linux, where this chord adds a cursor below.Alt+Shift+DownOption+Shift+Down
Toggle line commentCtrl+/Cmd+/
Add line commentA sequence: press the first chord, release it, then press the second.Ctrl+KthenCtrl+CCmd+KthenCmd+C
Remove line commentCtrl+KthenCtrl+UCmd+KthenCmd+U
Toggle block commentAlt+Shift+AOption+Shift+A

Code editor completion and folding 8

ActionWindows / LinuxMac
Start completionStays on the Ctrl key on a Mac.Ctrl+SpaceCtrl+Space
Accept completionEnterorTabReturnorTab
Close completionEscEsc
Move through suggestionsUporDownUporDown
Fold codeCtrl+Shift+[Cmd+Option+[
Unfold codeCtrl+Shift+]Cmd+Option+]
Fold allTwo chords typed one after the other, not held together.Ctrl+KthenCtrl+0Cmd+KthenCmd+0
Unfold allCtrl+KthenCtrl+JCmd+KthenCmd+J

Code editor on Mac only 4

ActionWindows / LinuxMac
Delete to line start—Cmd+Backspace
Delete to line end—Cmd+DeleteorCtrl+K
Split line—Ctrl+O
Transpose characters—Ctrl+T

Notes

Building the graph

N opens the node panel with a search box; the arrow keys expand and collapse its categories and Enter adds the highlighted node. Tab, the older key for the panel, is deprecated in current releases. Ctrl + D duplicates the selected nodes, Ctrl + C, Ctrl + X and Ctrl + V copy, cut and paste them — which also works between workflows — and F2 renames the selected node. Delete or Backspace removes the selection. Ctrl + G wraps the selected nodes in a canvas group, and Space renames a selected group.

Running and debugging

Ctrl + Enter runs the whole workflow. P pins the output data of the selected node so later runs reuse it instead of calling the external service again, which is how you develop downstream nodes without burning API quota; press P again to unpin. D deactivates the selected nodes, and pressing it again turns them back on. L opens the logs panel, with I and O for its input and output panes. Ctrl + K opens the command bar for actions that have no key.

Canvas

1 fits the whole workflow in the window and 0 resets the zoom; plus and minus zoom in steps and Ctrl + Scroll zooms with the mouse wheel. Holding Space + Drag pans, a plain drag draws a selection box around several nodes so they can be moved or copied together, and Ctrl + Click adds single nodes to the selection. Since n8n 2.4 workflows autosave as you edit; Ctrl + S remains as a manual save, which instances with autosave disabled depend on.

Code node editor

The Code node has its own editor keymap, modelled on VS Code: Ctrl + D selects the next occurrence there instead of duplicating a node, Ctrl + / toggles a line comment and Alt + Shift + F formats the document. Comment and fold-all commands are two-step sequences such as Ctrl + K, Ctrl + C. A few bindings exist only on a Mac, and Linux differs from Windows in three places: formatting, adding cursors and copying lines.

Questions

How do I add a node quickly?

Select the node you want to connect from and press N, then type the node name and press Enter. Tab, the earlier key for the node panel, is deprecated.

What does pinning data do?

P pins the selected node's last output. Subsequent runs use the pinned data instead of executing the node, so you can build later steps without repeating API calls.

Does n8n save automatically?

Yes. Since n8n 2.4 the editor autosaves workflows as you edit. Ctrl + S (Cmd + S on a Mac) still triggers a manual save, and it is the way to save on self-hosted instances that have autosave disabled.

Can I copy nodes between workflows?

Yes. Ctrl + C copies the selection as JSON; Ctrl + V pastes it into any other workflow, or into a text file for sharing.

Which keys zoom the n8n canvas?

Plus or = zooms in, minus or _ zooms out, 0 resets the zoom level and 1 fits the whole workflow. None of them needs a modifier; Ctrl or Cmd with the mouse wheel also zooms.

Sources and checks

Every row on this page was matched to a line in the documentation above on . A binding that could not be found there is not listed.

2 rows from the earlier version of this page were removed in that check: duplicates, and bindings the documentation does not list or lists differently.

Found a wrong or missing key? Tell us and it gets checked against the source. How we verify describes the process and its limits.