Preparing the Workbench

This section shows you how to set up the workbench for PHP development.

The following is assumed:

Setting Workbench Preferences

If you still see the Eclipse Welcome page, click the arrow icon to begin using Eclipse. Select the menu item Window > Preferences to open the workbench preferences.

  1. Go to the tree pane and select the PHP category. A drop down menu will appear.

  2. Open the drop down menu and select the PHP Version to use.

  3. In order to work with ASPs, check the “Use ASP” checkbox.

Editor window

The Editor window is the main area for writing and editing code. More than one Editor window can be open at the same time. The Eclipse PHP Editor enables you to work in both PHP and HTML simultaneously.

Preference

Explanation

Code Assist

Code Assist provides you with a list of suggested completions for partially entered strings including PHP, HTML, classes, member variables, variables, keyword, and object code completion listings. Lists are comprised of declarations as well as most of the standard PHP and HTMLfunctions.

Code Folding

 

Code folding enables you to “collapse” sections of a source code file while working in other parts of it. This enables you to manage larger amounts of code within one window, without getting lost in a morass of complexity. A folding point is typically a method or a function but can also be an entire class or something as small as an if-then-else block or comment section.

Hovering

The Eclipse PDT supports combined hover, variables value, PHPDoc and source. When the mouse cursor is placed over a change in the vertical ruler, the hover displays the original content, which can be restored using the ruler's context menu.

Quick Diff

Quick Diff provides a color-coded change indication while you are typing.

Syntax Coloring

The Syntax coloring feature enables you to display text in different colors and fonts according to the specific syntax (category of term) of the term.

The Eclipse PDT Editor can color several languages at the same time and is user configurable in the Preferences window.

 

 

 

 

 

 

 

 

 

 

Task TagsStrings indicating tasks in PHP comments. The entry marked as default will be used in the code templates.Typing Automatically closes (completes) the options selected (Strings, parentheses, brackets, braces)..