Formatting Code

PDT can auto-format your code according to set standards in order to make it easily navigable and readable.

Your code will be automatically formatted according to the settings defined in the PHP Formatter Preferences page, accessed from Window | Preferences | PHP Formatter.

This procedure demonstrates how to format your scripts.

To format your whole script:

  1. Open the required file.
  2. Go to Source | Format Document or press Ctrl+Shift+F.

Your code will be automatically formatted.