- Open the Project Structure settings.
- In the Projects pane of the Project Structure page, click the project you want to configure content roots for.
- In the Content roots pane of the Project Structure 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:
- Click one of the icons on top to assign the desired status to this directory.
- Choose the corresponding status command on the context menu of the directory.

Alternatively, invoke the context menu command from the Project Tool Window. Right-click the directory in question, choose Mark Directory As node, and choose Mark as <directory status>.
- 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.
Alternatively, invoke the context menu command from the Project Tool Window. Right-click the directory in question, choose Mark Directory As node, and choose Unmark as <directory status>.
