ReSharper 2021.2 Help

Custom Patterns

ReSharper | Options | Code Inspection | Custom Patterns

This page of ReSharper options displays all custom patterns for Structural Search and Replace. You can click a pattern in the list to display the preview at the bottom of the page.

Add patternClick this button to open the Add/Edit/Search with Highlighting Pattern dialog and create a new code pattern.
Search nowClick this button to find or replace occurrences of the selected code pattern.
EditClick this button to open the Edit Highlighting Pattern dialog and edit the selected code pattern.
RemoveClick this button to remove the selected code pattern.
Import From ReSharper 6 and belowClick this button to import code patterns created with older versions of ReSharper and saved in XML files.
Severity level selectorThe severity level selector is shown next to each code pattern in the list. ReSharper would assign the specified severity to code blocks matched ty this pattern. Available severity levels of custom patterns are the same as severity levels of code inspections. For more information, see Create Custom Code Inspections and Quick-Fixes.
Last modified: 08 March 2021