PhpStorm 2017.1 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().

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 PhpStorm | Preferences for macOS, and click PHP under Languages & Frameworks.
  2. On the PHP page that opens, configure the list of include paths in the Include path area:
    • Use the new.png  and delete.png buttons to add and remove paths.
    • Use the /help/img/idea/2017.1/arrowUp.png  and /help/img/idea/2017.1/arrowDown.png  buttons to change the order of items in the list.
    • Press the sortedAlphabetically@2x.png toogle button to have the paths sorted alphabetically in the ascending order.

See Also

Last modified: 19 July 2017