PhpStorm 8.0.0 Web Help

File | Settings | Project Settings | Directories

settings

Use this dialog box to configure content roots of a project.

Item Tooltip Description
addRoot.png Add Content Root Click this button and select a new content root folder in the dialog that opens.
web_ide_remove_content_root.png Remove Content Entry Click this button to have the selected root removed from the list.
rootTest Tests Click this button to mark the selected folder as a test root.
rootSource.png Sources Click this button to mark the selected folder as the root for namespaces used in your project.

Based on this setting, PhpStorm suggests you the proper folder name when you want to create a new namespace under another parent namespace during creation or moving a PHP class, that is, when you are actually creating or moving a PHP class to a non-existing namespace under another parent namespace. If no Sources folder is specified, you will have to type the proper folder manually.

Appointing a Sources folder is not mandatory but this helps you keep your project structure in compliance with the PSR0 and PSR4 standards.

rootExcluded.gif Excluded Click this button to the selected folder as an excluded root.
rootSource.png Resource Root Click this button to enable PhpStorm to complete relative paths to resources under the selected folder.
wi_content_root_include.png Include Click this button to have the exclusion mark removed from the selected excluded content root.

See Also

Concepts:

Procedures:

Web Resources: