IntelliJ IDEA 2018.1 Help

Configuring Include Paths

Include paths are used for holding 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 you project. If you have the existing code that you need to access and modify from within several projects, consider adding as an additional content root.

To configure include paths

  1. Do any of the following:

    • In the Project Tool Window, right click External Libraries icons modules library and select Configure PHP Include Paths... from the context menu.
    • In the Settings/Preferences dialog (Ctrl+Alt+S), click PHP under Languages & Frameworks.
    • To configure the include paths that well be applied to all newly created projects, use Default settings (File | Default Settings).
  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 Sort to have the paths sorted alphabetically in the ascending order.
Last modified: 24 July 2018

See Also