ReSharper
 
Get ReSharper
You are viewing the documentation for an earlier version of ReSharper.

Add/Edit/Search with Highlighting Pattern dialog

Last modified: 21 July 2022

ReSharper | Options | Code Inspection | Custom Patterns | Add Pattern/Edit

ReSharper | Find | Search with Pattern

This dialog helps creating or editing custom patterns to detect code that matches specific pattern, and replace this code if necessary.

This topic describes controls in the dialog. To learn how to search and replace code with custom patterns, see Structural Search and Replace and Create custom code inspections and quick-fixes.

This dialog can be opened in two modes.

  • When you use the ReSharper | Find | Search with Pattern command, which is duplicated in the context menu of the editor, the dialog opens in the search/replace mode, allowing you to start the search or replace right from the dialog using the corresponding buttons at the bottom.

  • When you use the Add Pattern/Edit buttons on the Code Inspection | Custom Patterns page of ReSharper options, the dialog opens in the pattern editing mode, providing additional fields for specifying pattern description. However, in this mode, the Search/Replace buttons are not available.

Edit Highlighting Pattern dialog