You are here: User Guide > Tasks > Applying Quick Fixes

Applying Quick Fixes

Quick Fixes are suggestions for corrections to badly written code provided by the Semantic Analysis mechanism which can be easily applied to code to fix code errors.

 

 

Instructions on how to complete a procedure

To apply a quick fix suggestion:

  1. Open the file containing the problematic code.
    The line(s) containing code to which a quick fix can be applied will be indicated by a lightbulb icon in the vertical marker bar to the left of the editor window.
    See Real Time Error Detection for more information on how errors are indicated.

  2. Place the cursor on the problematic code section and press Ctrl + 1 -or- click the lightbulb icon in the marker bar.
    The Quick Fix list suggests options for fixing the code.

  1. Select the required fix from the list by clicking on it or by using the arrow keys and pressing Enter.

  2. The selected fix is applied and the code is changed accordingly.

 

 

 

Related Links:

Semantic Analysis

Semantic Analysis Preferences

 

 

©1999-2012 Zend Technologies LTD. All rights reserved.