Configuring Code Assist

You can use Code Assist to help insert or finish a tag or function or line of code in the editor as well as to select and insert templates.

The location of the cursor in the source file provides the context for the code assist  to offer suggestions for completion.

To request code assist while in the Editor:

In addition, you can set a preference that causes code assist to pop up automatically when certain characters are typed, as in HTML and XML.

Setting PHP Preferences

  1. Select Preferences from the Window menu.

  2. Go to PHP | Editor | Code Assist.

  3. Select your configuration options.

Figure 1: Setting Code Assist Preferences

Setting HTML Preferences

  1. Select Preferences from the Window menu.

  2. Select Web and XML Files from the navigator, followed by HTML Files. Expand. Select HTML Source.

  3. In the Code Assist group box, select the Auto-Activation check box.

  4. Supply any additional characters that should trigger code assist .

  5. If your cursor is in a position where code assist is available, a pop-up list of all available choices is displayed. For each of these choices, a brief description of the code is provided.

  6. Complete the options for HTML Styles and HTML Source.