Indenting and commenting
The formula editor can indent and outdent blocks of code for you. Indentation
is used to indicate the logical structure of code, to make formulas easier to
read.
- Click Indent Block on the Edit menu to move the selected lines to
the right. This will add a space at the start of each line.
- Click Outdent Block on the Edit menu to move the selected lines to
the left. This will remove a space from each line, if there is one.
You can also easily comment and uncomment blocks of code. The compiler will
ignore commented code, so this is an easy way to (temporarily) disable parts
of a formula.
- Click Comment Block on the Edit menu to comment the selected lines.
This will put a semicolon and a space at the start of each line.
- Click Uncomment Block on the Edit menu to uncomment the selected
lines. This will remove a semicolon and a space from each line, if any.
Next: Templates
See Also
Formula editors
Keyboard shortcuts for formula editors
Writing formulas