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.
| Action | Windows / Linux | Mac |
|---|---|---|
| New workflowNot available when the instance runs in canvas-only mode. | Ctrl+Alt+N | Cmd+Option+N |
| Open workflow | Ctrl+O | Cmd+O |
| Save workflowRuns a manual save, the only way to save on instances with autosave turned off. | Ctrl+S | Cmd+S |
| Undo | Ctrl+Z | Cmd+Z |
| Redo | Ctrl+Shift+Z | Cmd+Shift+Z |
| Publish workflowDoes nothing when n8n is deployed in canvas-only mode. | Ctrl+P | Cmd+P |
| Unpublish workflowSwitched off, like publishing, on canvas-only deployments. | Ctrl+U | Cmd+U |
| Command barSearches actions and resources; what it lists depends on the open view and your permissions. | Ctrl+K | Cmd+K |
| Tidy up workflow | Alt+Shift+T | Option+Shift+T |
Execution and debug 7
| Action | Windows / Linux | Mac |
|---|---|---|
| Run workflow | Ctrl+Enter | Cmd+Return |
| Pin/Unpin dataKeeps the selected node's output so later test runs reuse it instead of fetching fresh data. | P | P |
| Activate/DeactivateSwitches the enabled state of every selected node. | D | D |
| Start chat | C | C |
| Toggle logs panel | L | L |
| Toggle logs input pane | I | I |
| Toggle logs output pane | O | O |
Selecting nodes 9
| Action | Windows / Linux | Mac |
|---|---|---|
| Select all | Ctrl+A | Cmd+A |
| Box-select nodesDragging on empty canvas marks every node inside the rectangle. | Drag | Drag |
| Add node to selectionBuilds a selection one node at a time. | Ctrl+Click | Cmd+Click |
| Select sibling above | Up | Up |
| Select sibling below | Down | Down |
| Select node to the left | Left | Left |
| Select node to the right | Right | Right |
| Select upstream nodesExtends the selection to everything on the left side of the current node. | Shift+Left | Shift+Left |
| Select downstream nodesExtends the selection to everything on the right side of the current node. | Shift+Right | Shift+Right |
Editing nodes 15
| Action | Windows / Linux | Mac |
|---|---|---|
| Open node details | Double-click | Double-click |
| Open selected nodeKeyboard equivalent of double-clicking the node. | Enter | Return |
| Open sub-workflow in new tab | Ctrl+Double-click | Cmd+Double-click |
| Open selected sub-workflowNeeds a sub-workflow node selected; the target opens in another browser tab. | Ctrl+Shift+O | Cmd+Shift+O |
| Copy node | Ctrl+C | Cmd+C |
| Cut node | Ctrl+X | Cmd+X |
| Paste node | Ctrl+V | Cmd+V |
| Duplicate node | Ctrl+D | Cmd+D |
| Delete nodeEither key removes whatever is selected on the canvas. | DeleteorBackspace | DeleteorBackspace |
| Rename node | F2 | F2 |
| Replace node | R | R |
| Add sticky note | Shift+S | Shift+S |
| Extract to sub-workflowActs on the selected nodes and is disabled where sub-workflow conversion is switched off. | Alt+X | Option+X |
| Copy production URLApplies to the last selected node. | Alt+U | Option+U |
| Copy test URLReads the address from the last selected node. | Alt+Shift+U | Option+Shift+U |
Canvas groups 5
| Action | Windows / Linux | Mac |
|---|---|---|
| Group selected nodes | Ctrl+G | Cmd+G |
| Ungroup nodes | Ctrl+Shift+G | Cmd+Shift+G |
| Expand groupsOpens every group, or just the selected ones when groups or nodes inside them are selected. | Alt+G | Option+G |
| Collapse groupsCloses every group unless a selection narrows it to the selected groups. | Alt+Shift+G | Option+Shift+G |
| Rename groupOn a collapsed group this opens a dialog; an expanded group is renamed inline. | Space | Space |
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.
| Action | Windows / Linux | Mac |
|---|---|---|
| Open node panelReplaces Tab, which current releases treat as deprecated for this. | N | N |
| Add highlighted node | Enter | Return |
| Close node panel | Esc | Esc |
| Toggle categoryOn a category row the key folds or unfolds it, or steps into a subcategory. | Enter | Return |
| Expand category | Right | Right |
| Collapse categoryInside a subcategory it goes back to the parent list. | Left | Left |
| Switch to expression modeWorks only while the parameter field has nothing typed in it. | = | = |
| Toggle focus panel | Shift+F | Shift+F |
Code editor selection and cursors 10
| Action | Windows / Linux | Mac |
|---|---|---|
| Extend selectionShift turns any cursor movement key, including Home, End and the page keys, into a selection. | Shift+Arrow keys | Shift+Arrow keys |
| Select all text | Ctrl+A | Cmd+A |
| Select line | Ctrl+L | Cmd+L |
| Select next occurrenceAdds the following match of the selected text as another selection. | Ctrl+D | Cmd+D |
| Select all occurrencesSelects every match of the selected text at once. | Ctrl+Shift+L | Cmd+Shift+L |
| Add cursor with a click | Alt+Click | Option+Click |
| Add cursor aboveLinux uses Shift + Alt + Up for this. | Ctrl+Alt+Up | Cmd+Option+Up |
| Add cursor belowLinux uses Shift + Alt + Down for this. | Ctrl+Alt+Down | Cmd+Option+Down |
| Cursors at line endsWorks on a multi-line selection: each selected line gets its own cursor. | Alt+Shift+I | Option+Shift+I |
| Return to one cursor | Esc | Esc |
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.
| Action | Windows / Linux | Mac |
|---|---|---|
| New indented line | Enter | Return |
| Undo edit | Ctrl+Z | Cmd+Z |
| Redo edit | Ctrl+Y | Cmd+Y |
| Undo selectionSteps back the last cursor or selection change and leaves the text alone. | Ctrl+U | Cmd+U |
| Copy selection | Ctrl+C | Cmd+C |
| Cut selection | Ctrl+X | Cmd+X |
| Paste clipboard text | Ctrl+V | Cmd+V |
| Delete character left | Backspace | Backspace |
| Delete character right | Delete | Delete |
| Delete word left | Ctrl+Backspace | Option+Backspace |
| Delete word right | Ctrl+Delete | Option+Delete |
| Delete line | Ctrl+Shift+K | Cmd+Shift+K |
| Indent more | TaborCtrl+] | Cmd+] |
| Indent less | Shift+TaborCtrl+[ | Cmd+[ |
| Format documentLinux uses Ctrl + Shift + I; the Mac key is taken from the release keymap. | Alt+Shift+F | Option+Shift+F |
Code editor lines and comments 8
| Action | Windows / Linux | Mac |
|---|---|---|
| Move line up | Alt+Up | Option+Up |
| Move line down | Alt+Down | Option+Down |
| Copy line upNot bound on Linux, where this chord adds a cursor above. | Alt+Shift+Up | Option+Shift+Up |
| Copy line downNot bound on Linux, where this chord adds a cursor below. | Alt+Shift+Down | Option+Shift+Down |
| Toggle line comment | Ctrl+/ | Cmd+/ |
| Add line commentA sequence: press the first chord, release it, then press the second. | Ctrl+KthenCtrl+C | Cmd+KthenCmd+C |
| Remove line comment | Ctrl+KthenCtrl+U | Cmd+KthenCmd+U |
| Toggle block comment | Alt+Shift+A | Option+Shift+A |
Code editor completion and folding 8
| Action | Windows / Linux | Mac |
|---|---|---|
| Start completionStays on the Ctrl key on a Mac. | Ctrl+Space | Ctrl+Space |
| Accept completion | EnterorTab | ReturnorTab |
| Close completion | Esc | Esc |
| Move through suggestions | UporDown | UporDown |
| Fold code | Ctrl+Shift+[ | Cmd+Option+[ |
| Unfold code | Ctrl+Shift+] | Cmd+Option+] |
| Fold allTwo chords typed one after the other, not held together. | Ctrl+KthenCtrl+0 | Cmd+KthenCmd+0 |
| Unfold all | Ctrl+KthenCtrl+J | Cmd+KthenCmd+J |
Code editor on Mac only 4
| Action | Windows / Linux | Mac |
|---|---|---|
| Delete to line start | — | Cmd+Backspace |
| Delete to line end | — | Cmd+DeleteorCtrl+K |
| Split line | — | Ctrl+O |
| Transpose characters | — | Ctrl+T |
No row on this page matches that filter.
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
- n8n Docs — Keyboard shortcuts Workflow, canvas, node and node panel shortcuts; both columns (the page prints Ctrl/Cmd in each row)
- n8n Docs — Code node: Keyboard shortcuts (Windows and macOS tabs) Code editor categories, Windows / Linux and Mac columns
- n8n source code, release [email protected] — Canvas.vue (canvas key map) Canvas shortcuts the docs page does not list (duplicate, tidy up, logs, sub-workflow, URLs)
- n8n source code, release [email protected] — codemirror/keymap.ts (code editor keymap) Code editor: go to line, diagnostics, Shift selection, Mac key for Format document, Linux differences
- n8n Docs — Deploy n8n in canvas-only mode Publish and unpublish shortcuts
- n8n Docs — Canvas Groups Box selection and Ctrl/Cmd-click selection
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.