Code Assist Preferences

The Code Assist feature enables the selection and insertion of existing code elements to complete partially entered code.

The Code Assist preferences page allows you to configure your Code Assist preferences.

 

The Code Assist Preferences page is accessed from Window | Preferences | PHP | Editor | Code Assist.

 

 

Instructions on how to complete a procedure

To configure Code Assist preferences:

  1. Mark the required checkboxes to configure the following options:

Options

  • Completion Inserts / Completion Overwrites - Select whether selecting an item from the Code Assist list  will cause new code to be entered or existing code to be overwritten.

  • Insert single proposals automatically - When only one code assist suggestion exists, the code assist suggestion will be inserted automatically.

  • Show variables from other files - Shows variables which are in other files in the project.

  • Determine object type from other files - Shows objects from other files in the project.

Filters

  • Show constants - Displays constants in the code assist list.

  • Case sensitive for constants - Constants will be case sensitive.

  • Show class names - Displays class names in the code assist list.

  • Show non-strict options - Display options which go against PHP strict practice in the code assist list.

  • Group completion options - Groups options according to element type.

Auto-activation

  • Enable auto activation - The code assist list will automatically be displayed.

Note:

If this is unmarked, you can still display the code assist list by pressing Ctrl+Space.

  • Auto activation delay: Determines the delay before the Code Assist box is automatically displayed (in msecs).

  • Auto-activation triggers for PHP: Sets the characters that determine PHP context.

  • Auto-activation triggers for PHPDoc: Sets the characters that determine PHPDoc context.

Note:

A maximum of 4 characters can be entered.

  1. Click Apply to apply your settings.

 

 

 

Related Links

Related Links:

Using Code Assist

Working with Code Assist

PHP Preferences

Editor Preferences