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:
Creating and removing content roots
- 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 of the Project Structure page,
click the Add Content Root button
.
- In the dialog that opens,
locate the desired directory and click OK.
- 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, select the content root to be deleted.
- Click the Remove Content Entry button
.
- Confirm deletion.