Directories
Use this dialog to configure folder types in the project directory structure.
Item | Tooltip | Description |
---|---|---|
Add Content Root | Click this button and select a new content root folder in the dialog that opens. A content root is the application root directory. You can add several content roots within one PhpStorm project. Having several content roots enables you to work with files from several directories that do not have a common immediate parent. This is helpful when you use static contents, for example, icons. You can just save them all in a folder and then specify this folder as an extra content root in several projects. | |
Remove Content Entry | Click this button to have the selected root removed from the list. | |
Tests | Click this button to mark the selected folder as a test root. | |
Sources | Click this button to mark the selected folder as the root for namespaces used in your project. Based on this setting, PhpStorm suggests the proper folder name when you want to create a new namespace under another parent namespace during creation or moving of 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. | |
Excluded | Click this button to mark the selected folder as excluded so PhpStorm ignores it during indexing, parsing, and code completion. | |
Resource Root | Click this button to enable PhpStorm to complete relative paths to resources under the selected folder. | |
Exclude files | In the Exclude files field, type the masks that define the names of files and folders to be excluded, for example,
|