ReSharper Web Help

Replacing Code with Pattern

From time to time there is a need to improve existing code or adapt it to changes.
When the standard refactorings do not help to achieve these goals,
you can automate the changes using structural search and replace.
Once you define patterns, then you use them to refactor your code in some projects or
in the whole solution.

To find and replace occurrences of a code pattern

On the main menu, choose ReSharper | Find | Search with Pattern.
The Search with Pattern dialog box opens.