Onetastic Macro Documentation >
Macro Editor >
Editing Macro Statements
Macro Editor has a set of statement buttons and a large pane that
contains the contents of the current macro. You can use the statement buttons (Alt+1 to Alt+9)
to insert new statements to the macro and use Delete key to remove them from the macro. You can also
use the up/down buttons on the right to move the statements up and down as well as in an out of
parent statements. The statements can be collapsed/expanded using the little arrows
to the left of them.
Each statement has one or more editable parts. To edit them click on those parts or use the
keyboard shortcuts explained below. Below image shows the editable parts of the statement
in red rectangles.
Most statements contain a single expression which can be edited by pressing the Enter key.
For statement consists of 3 expressions, each of which can be edited by Enter, Ctrl+Enter and Ctrl+Alt+Enter
keys respectively. ForEach statement consists of a loop variable and a array expression.
The loop variable can be edited by the Enter key while the array expression can be edited by
Ctrl+Enter key. There are some other keyboard shortcuts for various operations: