- Open the project settings, and then click the Directories node.
- In the Directories page, click the desired content root. The directories under this content root are displayed as a tree view in the right-hand pane.
-
Select the directory you want to mark and do one of the following:
-
To have WebStorm consider the contents of the selected folder as unit tests, click the Test Sources toolbar button
or choose Test Sources on the context menu of the selection.
-
To have WebStorm ignore the selected directory during indexing, parsing, code completion, etc.,
click the Excluded toolbar button
or choose Excluded on the context menu of the selection.
-
To enable WebStorm to complete relative paths to resources under the selected folder,
click the Resource Root toolbar button
or choose Resource Root on the context menu of the selection.

-
To have WebStorm consider the contents of the selected folder as unit tests, click the Test Sources toolbar button
- Right-click the desired directory in the Project Tool Window.
- On the context menu, point to Mark Directory As node.
- Choose Mark as <directory status>.
-
In the Project Structure:
- Select the directory in question in the list of folders under the content root, and click
:

- Click the folder's status icon once more.
- Choose the corresponding command on the context menu of the directory.
- Select the directory in question in the list of folders under the content root, and click
- In the Project Tool Window, right-click the desired directory, point to Mark Directory As node, and then choose Unmark as <directory status>.

