Formatting Code in Programs
You can format entire program files or specific blocks of code according to the preferences you set in the Beautify Options dialog box.
For more information about the formatting preferences you can set, see Beautify Options Dialog Box.
To set formatting preferences
- Open the program file.
- To format a specific block of code, select the code you want to format. To format the entire program, do not select any code.
- From the Tools menu, select Beautify.
- In the Beautify Options dialog box, select the formatting preferences that you want.
You can also right-click the editing window and select Beautify from the shortcut menu.
The formatting process uses the top line in the block selected for determining the base indentation level.
To run formatting on the code
- In the Beautify Options dialog box, click Run.
After formatting the code using the Beautify tool, you can make any additional changes in the formatting of the code.
See Also
Working with Programs | Creating Programs | _BEAUTIFY System Variable