简体   繁体   中英

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

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!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM