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 in开发者_如何学Cstallation, 5.1. I'm using Visual Studio 2010.
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.
精彩评论