Skip to content

Keyboard Shortcuts

The action logic editor supports a full set of keyboard shortcuts for editing, autocomplete, navigation, and multi-cursor work. The ones you will reach for most are listed below. On the keys, Ctrl is the Control key.

CommandShortcut
UndoCtrl+Z
RedoCtrl+Shift+Z (or Ctrl+Y)
CutCtrl+X
CopyCtrl+C
PasteCtrl+V
Select allCtrl+A
Save and close the editorCtrl+S
CommandShortcut
Show autocomplete suggestionsCtrl+Space
Show parameter hints for a functionCtrl+Shift+Space
Accept the highlighted suggestionEnter or Tab
Move through the suggestion listUp / Down
Dismiss suggestions or a hover cardEscape

Suggestions also appear on their own as you type, and after you type a ., (, [, or a space.

CommandShortcut
FindCtrl+F
Find and replaceCtrl+H
Go to lineCtrl+G
Go to start of the logicCtrl+Home
Go to end of the logicCtrl+End
Open the command paletteF1
CommandShortcut
IndentTab or Ctrl+]
OutdentShift+Tab or Ctrl+[
Move the current line up or downAlt+Up / Alt+Down
Copy the current line up or downShift+Alt+Up / Shift+Alt+Down
Delete the current lineCtrl+Shift+K
Fold or unfold a blockCtrl+Shift+[ / Ctrl+Shift+]

Folding is available in the full-size editor window.

CommandShortcut
Toggle a line comment (//)Ctrl+/
Toggle a block comment (/* */)Shift+Alt+A
CommandShortcut
Select the next occurrence of the current wordCtrl+D
Select all occurrences of the current wordCtrl+Shift+L
Add a cursor with the mouseAlt+Click

Right-click anywhere in the editor and choose Insert Distribution to pick a distribution and drop a ready-made time expression at the cursor.

LegacyHow this worked in the previous version

Keyboard shortcuts for the action logic window.

CommandKey
Magnify text size.Ctrl+Keypad+
Reduce text size.Ctrl+Keypad-
Restore text size to normal.Ctrl+Keypad/
Open Keywords and Filters.Ctrl+K
Show autocomplete.Ctrl+Enter
Show Calltip.Ctrl+Shift+Space
Print.Ctrl+P
Undo.Ctrl+Z, Alt+Back
Redo.Ctrl+Y, Alt+Shift+Back
Cut.Ctrl+X, Shift+Del
Copy.Ctrl+C, Ctrl+Ins
Paste.Ctrl+V, Shift+Ins
Select All.Ctrl+A
Find.Ctrl+F
Find Next.F3
Find Previous.Shift+F3
Replace.Ctrl+H
Incremental Search.Ctrl+Alt+I
Selection Add Next.Ctrl+Shift+D
Go to Line.Ctrl+G
Match Brace.Ctrl+E
Select to Brace.Ctrl+Shift+E
Make Selection Uppercase.Ctrl+Shift+U
Make Selection Lowercase.Ctrl+U
Full Screen.F11
Indent block.Tab
Dedent block.Shift+Tab
Delete to start of word.Ctrl+BackSpace
Delete to end of word.Ctrl+Delete
Delete to start of line.Ctrl+Shift+BackSpace
Delete to end of line.Ctrl+Shift+Delete
Go to start of document.Ctrl+Home
Extend selection to start of document.Ctrl+Shift+Home
Go to start of display line.Alt+Home
Go to end of document.Ctrl+End
Extend selection to end of document.Ctrl+Shift+End
Go to end of display line.Alt+End
Expand or contract a fold point.Ctrl+Keypad*
Find selection.Ctrl+F3
Find selection backwards.Ctrl+Shift+F3
Scroll up.Ctrl+Up
Scroll down.Ctrl+Down
Line cut.Ctrl+L
Line copy.Ctrl+Shift+T
Line delete.Ctrl+Shift+L
Line transpose with previous.Ctrl+T
Selection duplicate.Ctrl+D
Previous paragraph. Shift extends selection.Ctrl+[
Next paragraph. Shift extends selection.Ctrl+]