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
|
|
|
To configure your 'automatic close' options:
|
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
|
|
To be able to indent a selected line in the editor using the Tab Key:
| |
For more on indentation preferences, see the Formatter Preferences page. |