Formatting code

You can specify settings to determine if your code is formatted and indented automatically or manually. You can also choose whether to view line numbers and whether to wrap long lines of code.

To set format options:

  1. Do one of the following
    • In the Actions panel, select Auto Format Options from the Options pop-up menu (at the upper right of the panel).
    • (Flash Professional only) In an external script file, choose Edit > Auto Format Options.

    The Auto Format Options dialog box appears.

  2. Select any of the check boxes. To see the effect of each selection, look in the Preview pane.

After you set Auto Format Options, your settings are applied automatically to code you write, but not to existing code. To apply your settings to existing code, you must do so manually. You might use this procedure to format code that was formatted using different settings, that you imported from another editor, and so on.

To format code according to Auto Format Options settings, do one of the following:

To use automatic indentation:

To enable or disable line numbers and word wrap: