Typing Preferences

The Typing preferences page allows you to configure the code and language patterns that Zend Studio will automatically complete, and whether the tab key will indent the current line.

The Typing Preferences page is accessed from Window | Preferences | PHP | Editor | Typing.

Typing preferences page

Automatically Close

Zend Studio can be set to automatically complete the following types of patterns:

  • "Strings" - A pair of double quotes ("") will be inserted when a single quotation mark (") is entered.

  • (Parentheses) and [Square] brackets - A pair of brackets will be inserted when the opening bracket is entered.

  • {Braces} - A pair of braces will be inserted when the opening brace is entered.

  • PhpDoc and comment regions - Automatically creates phpDoc Blocks

    • Add phpDoc tags - Adds phpDoc tags within the phpDoc Block comment.

  • Close PHP tag - A closing PHP tag (?>) will be inserted when the opening PHP tag (<?php) is entered.

Configuring Your 'Automatic Close' Options

 

 

Instructions on how to complete a procedure

To configure your 'automatic close' options:

  1. Mark the checkboxes of the patterns you would like Zend Studio to auto-complete.

  2. Click Apply to apply your settings.

To use the auto-complete function, type the opening character in the editor. The matching character will be automatically inserted.

 

Tabulators

Indenting a Selected Line in the Editor Using the Tab Key

 

 

Instructions on how to complete a procedure

To be able to indent a selected line in the editor using the Tab Key:

  1. Mark the 'tab key indents the current line' checkbox.

  2. Click Apply to apply your settings.

For more on indentation preferences, see the Formatter Preferences page.