Configure Indentation and Line Numbering in the Script Editor

By default, the Script Editor is configured to indent code using a tab character that is equivalent to 4 spaces. If your coding standards or preferences call for the use of spaces or a different tab size, you can change this configuration.

To configure code indentation, edit the Script Editor definition in the usys.ini file:

;usys.ini
[widgets]
...
SourceEdit=usrcedit(font=procboxfont;language=uniface;indenttabs=off;indentsize=2;indentguides=off;gutters=fold)
  • IndentTabs—use tab characters for indentation; one of on (use tabs) or off (use spaces); default is on.
  • IndentSize—size of the indentation in space characters; default is 4.
  • IndentGuides—display indentation guides as vertical lines; default is off.
  • gutters=fold—disable line numbering, This can improve performance when a code container contains a large amount of code.

Related Topics