开发者

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

开发者 https://www.devze.com 2023-01-19 11:36 出处:网络
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 (jus

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

精彩评论

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