Create New Project: Choose Project Directory
On this page of the wizard, specify the location of the files, appoint the project root, and configure the structure of the project to be created. The project root is the folder which is the parent for all the project sources. By default, all subfolders in this folder are treated as sources and their files are involved in indexing, searching, parsing, code completion, and so on. Use the icons on the toolbar to change this status.
If your sources are located in several independent parent folders, create a project in one of these folders and configure other sources as additional content roots on the Directories page of the Settings dialog.
For more information about configuring project contents, refer to Content root types.
Item | Description |
---|---|
Project root | Select the folder which is the parent for all the project sources and click this icon to add the .idea directory with settings to it. |
Test Sources | Click this icon to have PhpStorm treat the contents of tje selected folder as related to unit testing. Alternatively, choose Test Sources from the context menu of the selection. |
Resource Root | Click this icon to enable PhpStorm to complete relative paths to resources under the selected folder. This means that the contents of the selected folder can be referenced relative to it instead of specifying full paths. Alternatively, choose Resource Root from the context menu of the selection. |
Excluded | Click this button to have PhpStorm ignore the selected directory during indexing, parsing, code completion, and so on. Alternatively, choose Excluded from the context menu of the selection. |