Source Code Formatter

From Delphi for PHP Documentation Wiki

Jump to: navigation, search

Tools Image:pathPDF.jpg Source 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

Image:sourceformatter.png

  • Confirm that you want to format your source code by clicking OK in the Confirm dialog box

Image:formatconfirm.png

Below is a before and after example of source code formatting.

Before:

Image:before.png


After:

Image:After.png


[edit] See also

Personal tools