Source Code Formatter
Use the Source Code Formatter to format your PHP source code using a defined set of options including indents, line breaks and spacing. Source code formatting helps make your code look cleaner and also allows you to apply a consistent formatting style if you have multiple developers working on the same source code file when they normally format their code in their own different styles.
To format your source code using the Source Code Formatter
- Select Tools | Source Formatter from the main menu or use the shortcut key Ctrl+D
- Confirm that you want to format your source code by clicking OK in the Confirm dialog box
Below is a before and after example of source code formatting.
|Source Formatter: Indent Line Breaks Options||Screencast:Source Code Formatter|