# Create custom inspections

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

To create a custom inspection, you have to configure a [search and replace templates](search-templates.html). The IDE will search for code that matches the template and will highlight it in the editor.

Procedure:

1. In the Settings dialog (`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))), go to `Editor | Inspections`.

You can also press `Ctrl+Alt+Shift+H` (Windows), `⌘ ⌥ ⇧ H` (macOS), `⌘ ⌥ ⇧ H` (IntelliJ IDEA Classic (macOS)), `⌘ ⌥ ⇧ H` (macOS System Shortcuts), `Ctrl+Alt+Shift+H` (XWin), `Ctrl+Alt+Shift+H` (GNOME), `Ctrl+Alt+Shift+H` (KDE), `Ctrl+Alt+Shift+H` (Emacs), `Ctrl+Alt+Shift+H` (Sublime Text), `⌘ ⌥ ⇧ H` (Sublime Text (macOS)), `Ctrl+Alt+Shift+H` (VSCode), `⌘ ⌥ ⇧ H` (VSCode (macOS)) and select Configure Inspections.

2. Select the profile in which you want to create a new inspection.

3. On the toolbar, click the Add Custom Inspection button (![the Add Custom Inspection button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.add.svg)) and select  Add RegExp Search Inspection… if you want your inspection only to highlight code. Alternatively, click  Add RegExp Replace Inspection… if you want your inspection to highlight code strings and suggest fixes.

![Adding a new Structural Search and Replace inspection](https://resources.jetbrains.com/help/img/idea/2026.3/go_add_ssr_template.png)

4. When finished, click OK.

5. In the  Custom RegExp Inspection dialog, type a name of the new inspection, specify a tooltip, description, and provide a suppress ID if necessary.

6. Apply the changes and close the dialog.

After that, your custom inspection is going to appear in the list of inspections. There, you can change its [severity](configuring-inspection-severities.html) and the [scope](configuring-scopes-and-file-colors.html) in which this inspection will run.

![Custom inspection shown in the list of inspections](https://resources.jetbrains.com/help/img/idea/2026.3/go_ssr_custom_inspection.png)

When your inspection is ready, you can [run it](running-inspections.html#run-one-inspection). Alternatively, if the inspection is enabled, pieces of code will be highlighted automatically.

![Running custom inspection](https://resources.jetbrains.com/help/img/idea/2026.3/go_running_custom_inspection.png)

