Getting ReSharper to replace multiple instances of a selected expression during method extraction

Can someone please tell me how to get ReSharper to replace multiple instances (instead of one) of the selected expression using the extraction method? I swear I got this to do it earlier (just like Eclipse does in its refactoring extraction method), but I can't do it the last time I installed 5.1. I am using Visual Studio 2010.

+3
source share
1 answer

A new structural search and replacement of support may allow you to do this. Extract one instance into the method, and then replace the other instances of this template with method calls.

+6
source

Source: https://habr.com/ru/post/1768287/


All Articles