PhpStorm 2021.1 Help

Create New Project: Choose Project Directory

File | New Project From Existing Files - Web server is installed locally, source files are located under its document root
File | New Project From Existing Files - Source files are in a local directory, no Web server is yet configured

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, etc. Use the icons on the toolbar ro 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 box.

For more details about configuring project contents, see Content root and Configuring Folders within a Content Root.

ItemDescription
Project icon  Project rootSelect the folder which is the parent for all the project sources and click this icon or choose Project Root on the context menu of the selection. PhpStorm marks the selected folder with the icon_php_storm icon and adds the .idea directory with settings to it.
root_Test.png  Test SourcesClick this icon to have PhpStorm treat the contents of tje selected folder as related to unit testing. Alternatively, choose Resource Root on the context menu of the selection.
Root resource  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 on the context menu of the selection.

Root excluded  ExcludedClick this button to have PhpStorm ignore the selected directory during indexing, parsing, code completion, etc. Alternatively, choose Excluded on the context menu of the selection.
Last modified: 08 March 2021