# Add / Edit Pattern Dialog

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

> **TL;DR**
> Windows and Linux: `File | Settings | TODO - Add/Edit Filter`
>
>
>
> macOS: `GoLand | Settings | TODO - Add/Edit Filter`
>
>
>
> [Settings… shortcut](https://www.jetbrains.com/help/go/llms-keymap-index.md "ShowSettings") or ![the Settings button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.settings.svg)

Use this dialog to define patterns that help track [TODO](https://www.jetbrains.com/help/go/using-todo.html.md) 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](https://www.jetbrains.com/help/go/regular-expression-syntax-reference.html.md) 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. |

