Keyboard shortcuts when using the Code editor#
The Code node editing environment supports a range of keyboard shortcuts to speed up and enhance your experience. Select the appropriate tab to see the relevant shortcuts for your operating system.
Cursor Movement#
Action | Shortcut |
---|---|
Move cursor left | Left |
Move cursor right | Right |
Move cursor up | Up |
Move cursor down | Down |
Move cursor by word left | Ctrl+Left |
Move cursor by word right | Ctrl+Right |
Move to line start | Home or Ctrl+Left |
Move to line end | End or Ctrl+Right |
Move to document start | Ctrl+Home |
Move to document end | Ctrl+End |
Move page up | Page Up |
Move page down | Page Down |
Action | Shortcut |
---|---|
Move cursor left | Left or Ctrl+B |
Move cursor right | Right or Ctrl+F |
Move cursor up | Up or Ctrl+P |
Move cursor down | Down or Ctrl+N |
Move cursor by word left | Option+Left |
Move cursor by word right | Option+Right |
Move to line start | Cmd+Left or Ctrl+A |
Move to line end | Cmd+Right or Ctrl+E |
Move to document start | Cmd+Up |
Move to document end | Cmd+Down |
Move page up | Page Up or Option+V |
Move page down | Page Down or Ctrl+V |
Action | Shortcut |
---|---|
Move cursor left | Left |
Move cursor right | Right |
Move cursor up | Up |
Move cursor down | Down |
Move cursor by word left | Ctrl+Left |
Move cursor by word right | Ctrl+Right |
Move to line start | Home or Ctrl+Left |
Move to line end | End or Ctrl+Right |
Move to document start | Ctrl+Home |
Move to document end | Ctrl+End |
Move page up | Page Up |
Move page down | Page Down |
Selection#
Action | Shortcut |
---|---|
Selection with any movement key | Shift + [Movement Key] |
Select all | Ctrl+A |
Select line | Ctrl+L |
Select next occurrence | Ctrl+D |
Select all occurrences | Shift+Ctrl+L |
Go to matching bracket | Shift+Ctrl+\ |
Action | Shortcut |
---|---|
Selection with any movement key | Shift + [Movement Key] |
Select all | Cmd+A |
Select line | Cmd+L |
Select next occurrence | Cmd+D |
Go to matching bracket | Shift+Cmd+\ |
Action | Shortcut |
---|---|
Selection with any movement key | Shift + [Movement Key] |
Select all | Ctrl+A |
Select line | Ctrl+L |
Select next occurrence | Ctrl+D |
Select all occurrences | Shift+Ctrl+L |
Go to matching bracket | Shift+Ctrl+\ |
Basic Operations#
Action | Shortcut |
---|---|
New line with indentation | Enter |
Undo | Ctrl+Z |
Redo | Ctrl+Y or Ctrl+Shift+Z |
Undo selection | Ctrl+U |
Copy | Ctrl+C |
Cut | Ctrl+X |
Paste | Ctrl+V |
Action | Shortcut |
---|---|
New line with indentation | Enter |
Undo | Cmd+Z |
Redo | Cmd+Y or Cmd+Shift+Z |
Undo selection | Cmd+U |
Copy | Cmd+C |
Cut | Cmd+X |
Paste | Cmd+V |
Action | Shortcut |
---|---|
New line with indentation | Enter |
Undo | Ctrl+Z |
Redo | Ctrl+Y or Ctrl+Shift+Z |
Undo selection | Ctrl+U |
Copy | Ctrl+C |
Cut | Ctrl+X |
Paste | Ctrl+V |
Delete Operations#
Action | Shortcut |
---|---|
Delete character left | Backspace |
Delete character right | Del |
Delete word left | Ctrl+Backspace |
Delete word right | Ctrl+Del |
Delete line | Shift+Ctrl+K |
Action | Shortcut |
---|---|
Delete character left | Backspace |
Delete character right | Del |
Delete word left | Option+Backspace or Ctrl+Cmd+H |
Delete word right | Option+Del or Fn+Option+Backspace |
Delete line | Shift+Cmd+K |
Delete to line start | Cmd+Backspace |
Delete to line end | Cmd+Del or Ctrl+K |
Action | Shortcut |
---|---|
Delete character left | Backspace |
Delete character right | Del |
Delete word left | Ctrl+Backspace |
Delete word right | Ctrl+Del |
Delete line | Shift+Ctrl+K |
Line Operations#
Action | Shortcut |
---|---|
Move line up | Alt+Up |
Move line down | Alt+Down |
Copy line up | Shift+Alt+Up |
Copy line down | Shift+Alt+Down |
Toggle line comment | Ctrl+/ |
Add line comment | Ctrl+K then Ctrl+C |
Remove line comment | Ctrl+K then Ctrl+U |
Toggle block comment | Shift+Alt+A |
Action | Shortcut |
---|---|
Move line up | Option+Up |
Move line down | Option+Down |
Copy line up | Shift+Option+Up |
Copy line down | Shift+Option+Down |
Toggle line comment | Cmd+/ |
Add line comment | Cmd+K then Cmd+C |
Remove line comment | Cmd+K then Cmd+U |
Toggle block comment | Shift+Option+A |
Split line | Ctrl+O |
Transpose characters | Ctrl+T |
Action | Shortcut |
---|---|
Move line up | Alt+Up |
Move line down | Alt+Down |
Copy line up | Shift+Alt+Up |
Copy line down | Shift+Alt+Down |
Toggle line comment | Ctrl+/ |
Add line comment | Ctrl+K then Ctrl+C |
Remove line comment | Ctrl+K then Ctrl+C |
Toggle block comment | Shift+Alt+A |
Autocomplete#
Action | Shortcut |
---|---|
Start completion | Ctrl+Space |
Accept completion | Enter or Tab |
Close completion | Esc |
Navigate completion options | Up or Down |
Action | Shortcut |
---|---|
Start completion | Ctrl+Space |
Accept completion | Enter or Tab |
Close completion | Esc |
Navigate completion options | Up or Down |
Action | Shortcut |
---|---|
Start completion | Ctrl+Space |
Accept completion | Enter or Tab |
Close completion | Esc |
Navigate completion options | Up or Down |
Indentation#
Action | Shortcut |
---|---|
Indent more | Tab or Ctrl+] |
Indent less | Shift+Tab or Ctrl+[ |
Action | Shortcut |
---|---|
Indent more | Cmd+] |
Indent less | Cmd+[ |
Action | Shortcut |
---|---|
Indent more | Tab or Ctrl+] |
Indent less | Shift+Tab or Ctrl+[ |
Code Folding#
Action | Shortcut |
---|---|
Fold code | Ctrl+Shift+[ |
Unfold code | Ctrl+Shift+] |
Fold all | Ctrl+K then Ctrl+0 |
Unfold all | Ctrl+K then Ctrl+J |
Action | Shortcut |
---|---|
Fold code | Cmd+Option+[ |
Unfold code | Cmd+Option+] |
Fold all | Cmd+K then Cmd+0 |
Unfold all | Cmd+K then Cmd+J |
Action | Shortcut |
---|---|
Fold code | Ctrl+Shift+[ |
Unfold code | Ctrl+Shift+] |
Fold all | Ctrl+K then Ctrl+0 |
Unfold all | Ctrl+K then Ctrl+J |
Multi-cursor#
Action | Shortcut |
---|---|
Add cursor at click position | Alt+Left Button |
Add cursor above | Ctrl+Alt+Up |
Add cursor below | Ctrl+Alt+Down |
Add cursors to line ends | Shift+Alt+I |
Clear multiple cursors | Esc |
Action | Shortcut |
---|---|
Add cursor at click position | Option+Left Button |
Add cursor above | Ctrl+Option+Up |
Add cursor below | Ctrl+Option+Down |
Add cursors to line ends | Shift+Option+I |
Clear multiple cursors | Esc |
Action | Shortcut |
---|---|
Add cursor at click position | Alt+Left Button |
Add cursor above | Shift+Alt+Up |
Add cursor below | Shift+Alt+Down |
Add cursors to line ends | Shift+Alt+I |
Clear multiple cursors | Esc |
Formatting#
Action | Shortcut |
---|---|
Format document | Shift+Alt+F |
Action | Shortcut |
---|---|
Format document | Shift+Cmd+F |
Action | Shortcut |
---|---|
Format document | Ctrl+Shift+I |
Search & Navigation#
Action | Shortcut |
---|---|
Open Search | Ctrl+F |
Select All | Alt+Enter |
Replace All | Ctrl+Alt+Enter |
Go To Line | Ctrl+G |
Next Diagnostic | F8 |
Previous Diag. | Shift+F8 |
Open Lint Panel | Ctrl+Shift+M |
Action | Shortcut |
---|---|
Open Search | Cmd+F |
Select All | Cmd+Enter |
Replace All | Cmd+Option+Enter |
Go To Line | Cmd+G |
Next Diagnostic | F8 |
Previous Diag. | Shift+F8 |
Open Lint Panel | Cmd+Shift+M |
Action | Shortcut |
---|---|
Open Search | Ctrl+F |
Select All | Alt+Enter |
Replace All | Ctrl+Alt+Enter |
Go To Line | Ctrl+G |
Next Diagnostic | F8 |
Previous Diag. | Shift+F8 |
Open Lint Panel | Ctrl+Shift+M |