Formatter Properties

Zend Studio can auto-format scripts to organize them into an easily readable format. The Formatter Properties page allows you to customize the way they are  formatted for the project.

To access the Formatter Properties page, right-click a PHP project in PHP Explorer view and select Properties | Resource -or- select the project and from the menu bar go to Project | Properties | Code Style | Formatter.

 

 

Instructions on how to complete a procedure

To configure Formatter Properties for the project:

  1. Mark the 'Enable project specific settings' checkbox.

  2. Configure the settings according to your preferences.
    See Formatter Preferences for more information on the settings available.

  3. Click Apply.
    A prompt dialog will appear stating that a rebuild of the project must occur for the settings to take effect.

  4. Click Yes to rebuild the project.
    -Or- click No for a rebuild to be performed only when Zend Studio is restarted.
    -Or- click Cancel to cancel the operation.

 

Default Formatter Properties for all projects can be set in the Formatter Preferences page, (accessed by going to Window | Preferences | PHP | File Network -or- by clicking the Configure Workspace Settings link on the properties page.