WebStorm 9.0.0 Web Help

Any project contains at least one content root created together with the project.

You can create additional content roots as well as remove the unnecessary ones.

In this section:

To create a new content root
  1. Open the project settings by choosing File | Settings | Project Settings. Then click Directories.
  2. On the Directories page, click the Add Content Root button addRoot.
  3. In the dialog that opens, locate the desired directory and click OK.

To remove a content root
  1. Open the Project Settings.
  2. On the Directories page, select the content root to be deleted.
  3. Click the Remove Content Entry button web_ide_remove_content_root.png.

    web_ide_deleteContentRoot.png

  4. Confirm deletion.
Specifying folder categories in the Project tool window

Here is how you assign a folder to a different category. In a similar way, you can assign a folder to any other category.

  1. Open the Project tool window (e.g. View | Tool Windows | Project).
  2. Select the folder that you want to assign to test sources.
  3. In the context menu, point to Mark Directory As and select the desired category.

In a similar way you can change the folder category at a later time. (Just select a different category from the context menu.)

To cancel the folder association with its current category (i.e. to make a folder an "ordinary" folder folder), select Unmark as <current_category> Root (e.g. Unmark as Test Sources Root).

See Also

Concepts:

Reference:

Web Resources: