views:

22

answers:

1

Can anybody please tell me how to get ReSharper to replace multiple instances (instead of just one) of a highlighted expression when using Extract Method ? I swear I've gotten it to do it before (just like Eclipse does in its Extract Method refactoring), but I'm unable to do it on the latest installation, 5.1. I'm using Visual Studio 2010.

+2  A: 

The new structural search and replace support might allow you to do that. Extract one instance to a method then replace other instances of that pattern with calls to the method.

Neil Barnwell
Yeah, I just discovered "Find similar code" about a minute after I wrote that. Good tip though.
Alex Marshall

related questions