# Add / Edit Pattern Dialog

> **TL;DR**
> Windows and Linux: `File | Settings | TODO - Add/Edit Filter`
>
>
>
> macOS: `CLion | Settings | TODO - Add/Edit Filter`
>
>
>
> `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)), `⌘ Comma` (Xcode), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (ReSharper), `⌘ Comma` (ReSharper (macOS)), `Ctrl+Alt+S` (QtCreator), `⌘ Comma` (QtCreator (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) or ![the Settings button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.settings.svg)

Use this dialog to define patterns that help track [TODO](using-todo.html) items in your source code. Make sure the TODO items in the source code are inserted inside comments that are valid for the supported file types.

| Item | Description |
| --- | --- |
| Pattern | In this field, type the [regular expression](regular-expressions.html) that describes the desired TODO pattern.  |
| Icon | From this list, choose an icon for the pattern. |
| Case sensitive | Select this checkbox to make the pattern case-sensitive. |
| Font type | Select the corresponding checkbox to have the icon text displayed in bold or italic.  |
| Foreground | Select this checkbox to enable the palette and choose the foreground color. |
| Background | Select this checkbox to enable the palette and choose the background color. |
| Error Stripe Mark | Select this checkbox to enable the palette and choose the error stripe color. |
| Effects | Select this checkbox to enable effects (underscore, strikethrough, and so on) and choose the color for them from the palette. |

