PhpStorm 2023.2 Help

Configure include paths

Include paths are used for holding libraries, that is, third-party code that is used for completion and reference resolution in some functions/methods that use file paths as arguments, for example, require() or include().

Note that the files added via include paths are not meant to be edited within the scope of your project. If you have the existing code that you need to access and modify from within several projects, consider adding it via an additional content root.

Configure include paths

  1. In the Settings dialog (Control+Alt+S), click PHP.

  2. On the PHP page that opens, configure the list of include paths on the Include path tab:

    • Use Add and Remove to add and remove paths.

    • Use Move up and Move down to reorder the items in the list.

    • Click the Sort Alphabetically button to sort the paths alphabetically in the ascending order.

    Configure include paths dialog
Last modified: 26 June 2023