IntelliJ IDEA 2016.2 Help

Configuring Include Paths

Include paths are used for code completion and reference resolution in some functions/methods that use file paths as arguments (for example, require() or include()). You also need to configure PEAR as an include path to run the PHPUnit test framework from it when the Load from include path option is chosen on the PHPUnit page of the Settings / Preferences Dialog.

To configure include paths:

  1. Open the Settings / Preferences Dialog by pressing Ctrl+Alt+S or by choosing File | Settings for Windows and Linux or IntelliJ IDEA | Preferences for OS X, and click PHP under Languages&Frameworks.
  2. In the PHP page that opens, click the Update include paths button.
  3. In the Include paths area, that becomes available upon pressing the Update include paths button, configure the list of include paths.
    • To add a path to the list, click the Add button and select the required directory in the dialog box, that opens.
    • To remove a path from the list, select the required item and click the Remove button.

See Also

Last modified: 8 August 2016