Skip to main content

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

ActionShortcut
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

ActionShortcut
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

ActionShortcut
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

ActionShortcut
Delete character left⌫ Backspace
Delete character right⌦ Delete
Delete word left^Ctrl+⌫ Backspace
Delete word right^Ctrl+⌦ Delete
Delete line⇧ Shift+^Ctrl+K

Line Operations

ActionShortcut
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

Autocomplete

ActionShortcut
Start completion^Ctrl+Space
Accept completion↩ Enter or ⇥ Tab
Close completion⎋ Escape
Navigate completion options↑ Up or ↓ Down

Indentation

ActionShortcut
Indent more⇥ Tab or ^Ctrl+]
Indent less⇧ Shift+⇥ Tab or ^Ctrl+[

Code Folding

ActionShortcut
Fold code^Ctrl+⇧ Shift+[
Unfold code^Ctrl+⇧ Shift+]
Fold all^Ctrl+K then ^Ctrl+0
Unfold all^Ctrl+K then ^Ctrl+J

Multi-cursor

ActionShortcut
Add cursor at click position⌥ Alt+🖱️ Left Click
Add cursor above^Ctrl+⌥ Alt+↑ Up
Add cursor below^Ctrl+⌥ Alt+↓ Down
Add cursors to line ends⇧ Shift+⌥ Alt+I
Clear multiple cursors⎋ Escape

Formatting

ActionShortcut
Format document⇧ Shift+⌥ Alt+F

Search & Navigation

ActionShortcut
Open Search^Ctrl+F
Select All⌥ Alt+↩ Enter
Replace All^Ctrl+⌥ Alt+↩ Enter
Go To Line^Ctrl+G
Next DiagnosticF8
Previous Diag.⇧ Shift+F8
Open Lint Panel^Ctrl+⇧ Shift+M