Adept developers can leverage several keyboard shortcuts to build interfaces more fluidly. There are general keyboard shortcuts that can be used for overall interface design, as well as keyboard shortcuts that enhance functionality specific to either design mode or expression mode.
The following keyboard shortcuts can be used in both design mode and expression mode:
Note: Undo/Redo in design mode will undo/redo changes to last interface state; in expression mode, this action will only undo/redo changes to text within the interface definition. Therefore, Undo/Redo can only be used to undo/redo changes within the same mode. For example, you cannot undo an action taken in expression mode by using the Undo function in design mode.
The following keyboard shortcuts are for component-level actions in design mode:
The following keyboard shortcuts are available when interacting with the expression editor in an interface:
Action | Windows | Mac |
---|---|---|
Close find/replace dialog | ESC | ESC |
Collapse/Expand code block | ALT+L | COMMAND+OPTION+L |
Comment code block | CTRL+/ | COMMAND+/ |
Copy | CTRL+C | COMMAND+C |
Create constant | CTRL+Click on new constant name | COMMAND+Click on new constant name |
Create constant dialog | ALT+O | COMMAND+OPTION+O |
Cut | CTRL+X | COMMAND+X |
Delete group before cursor | CTRL+Backspace | OPTION+Backspace |
Decrease indent | CTRL+[ | COMMAND+[ |
Delete line | CTRL+D | COMMAND+D |
Format expression | CTRL+SHIFT+F | CTRL+SHIFT+F |
Highlight all occurrences | Double-click word | Double-click word |
Highlight all text inside | Double-click parenthesis | Double-click parenthesis |
Increase indent | CTRL+] | COMMAND+] |
Launch the Query Editor | ALT+V | COMMAND+OPTION+V |
Move cursor before group | CTRL+Left | OPTION+Left |
Move cursor after group | CTRL+Right | OPTION+Right |
Move cursor to line start | Home | COMMAND+Left |
Move cursor to line end | End | COMMAND+Right |
Open find dialog | CTRL+F | COMMAND+F |
Open find and replace dialog | CTRL+H | COMMAND+H |
Open object definition | CTRL+Click on object name | COMMAND+Click on object name |
Paste | CTRL+V | COMMAND+V |
Redo | CTRL+Y | COMMAND+Y, COMMAND+SHIFT+Z |
Select all | CTRL+A | COMMAND+A |
Save Selected Expression As… | ALT+SHIFT+E | COMMAND+SHIFT+E |
Select group before cursor | CTRL+SHIFT+Left | OPTION+SHIFT+Left |
Select group after cursor | CTRL+SHIFT+Right | OPTION+SHIFT+Right |
Select previous occurrence | SHIFT+ALT+Left | CTRL+OPTION+Left |
Select next occurrence | SHIFT+ALT+Right | CTRL+OPTION+Right |
Show/Hide indent guide | CTRL+G | COMMAND+G |
Undo | CTRL+Z | COMMAND+Z |
View domains | SHIFT+ALT+D | COMMAND+SHIFT+D |
View functions | SHIFT+ALT+F | COMMAND+SHIFT+F |
Tip: For a quick reference of these shortcuts as you are working, hover over the ? icon in the top right of the expression editor.