Source Code Formatter

From RadPHP XE2 Documentation
Jump to: navigation, search

Tools 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

Sourceformatter.png

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

Formatconfirm.png

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

Before:

Before.png


After:

After.png


See also

Source Formatter: Indent Line Breaks Options Screencast:Source Code Formatter
Personal tools