# Configuring content roots

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/go/2026.3/llms.txt).

Procedure: Create a content root

1. Open settings (`Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS))) and navigate to Project Structure.

2. In the content roots pane of the Project Structure menu,  click the Add Content Root button ![Add Content Root](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.add.svg).

3. In a file browser, navigate to a folder that you want to attach and click OK.

![Add Content Root](https://resources.jetbrains.com/help/img/idea/2026.3/go_addContentRoot.png)

Procedure: Remove a content root

1. Open settings (`Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS))) and navigate to Project Structure.

2. In the Content roots pane, select the content root that you want to delete.

3. Click the Remove button ![Remove content root](https://resources.jetbrains.com/help/img/idea/2026.3/app-client.diff.remove.svg) and confirm removal.

![Add Content Root](https://resources.jetbrains.com/help/img/idea/2026.3/go_removeContentRoot.png)

## Excluding files and folders by name patterns

You can make files and folders [excluded](content-root.html#excluded_folder) by specifying the name patterns. Use the Exclude files field to specify the patterns.

![Exclude by name pattern](https://resources.jetbrains.com/help/img/idea/2026.3/go_exclude_by_name_pattern.png)

> **Note:**
> The files and folders whose names match at least one of the specified patterns are made excluded. Folders are excluded along with all their contents.

## See also

### Concepts

[Content root](content-root.html)

