Configuring Typing Preferences

The Typing Preferences settings determine which code and language patterns the PDT will automatically complete for you.

The PDT will automatically complete the following types of patterns (if set):

 

For the following patterns, enter the opening pattern and click Enter; the PDT will automatically complete the pattern.

To configure Typing Preferences
  1. Click Window | Preferences | PHP | Editor | Typing. The Typing Preferences dialog will open.

Figure 1 - Configuring Typing Preferences
 

  1. Check / Uncheck the options required.

Note:    All checked options will be completed, automatically, by the PDT.

  1. Click Apply to apply the selection; click OK to exit.

Example

Auto Complete PHPDoc block
  1. Open the Editor;  type the "/**" opening block,  press Enter. The opening block will be completed with the closing block statement. The result is:


/**
*
*/

Generate PHPDoc block stub" option.

  1. Open the Editor; type the PHP code shown below. Type the  "/**" opening block above the code and press Enter.
    /**
    function a($a,$b){return $c;

  2. The result is as follows:

/**
 * Enter description here
*
 * @param unknown_type $a
 * @param unknown_type $b
 * @return unknown
 */
function a($a,$b){return $c; }