开发者

Getting ReSharper to replace multiple instances of a highlighted expression during Extract Method

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜