Partager via


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

  1. Open the program file.
  2. To format a specific block of code, select the code you want to format. To format the entire program, do not select any code.
  3. From the Tools menu, select Beautify.
  4. 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