Resharper rename feature similar to Visual Studio rename - is it possible?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 02:12:26

问题


When you're using Visual Studio refactoring features you may change the name of variable / class name, etc., press ctrl + . and you're able to apply rename to this change. When you're using Resharper you have to say up front that you want to rename it (you have to press ctrl + r + r or f2). Is it possible in Resharper to change the name and then say you wanted full rename?

Thanks in advance for help!


回答1:


Yes. Starting from version 6.0, you can change the name of a symbol declaration first, and press Alt+Enter to apply the in-place rename refactoring. Similar in-place rename functionality is available for "Change signature" and "Move static members" refactorings. Note that this only works when you're at symbol declarations. If you want to rename a symbol from its usage, you still have to use the regular Rename refactoring available via F2.



来源:https://stackoverflow.com/questions/8192993/resharper-rename-feature-similar-to-visual-studio-rename-is-it-possible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!