Configuring content roots
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.
Create a content root
In the Settings/Preferences dialog (Ctrl+Alt+S), click Directories.
On the Directories page, click the Add Content Root button
.
In the dialog that opens, locate the desired directory and click OK.
Remove a content root
In the Settings/Preferences dialog (Ctrl+Alt+S), click Directories.
On the Directories page, select the content root that you want to delete.
Click the Remove button
and confirm removal.
Excluding files and folders by name patterns
You can make files and folders excluded by specifying the name patterns. Use the Exclude files field to specify the patterns.
![Exclude by name pattern Exclude by name pattern](https://resources.jetbrains.com/help/img/idea/2022.1/exclude_by_name_pattern.png)
Last modified: 23 March 2022