Configure include paths
Last modified: 10 August 2022warning
The following is only valid when the PHP plugin is installed and enabled.
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 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
Do one of the following:
To configure the include paths for the current project, in the Settings/Preferences dialog (Ctrl+Alt+S), click PHP under Languages & Frameworks.
To configure the include paths that will be applied to all newly created projects, use the default new project settings (File | New Projects Setup | Settings/Preferences for New Projects).
On the PHP page that opens, configure the list of include paths on the Include path tab:
Use
and
to add and remove paths.
Use
and
to reorder the items in the list.
Click
to sort the paths alphabetically in the ascending order.
Thanks for your feedback!