Rename a C++ class

I would like to rename a class, so all references to the class in a VS solution change to the new name.

What I tried was to select the name in its header file and press F2. I typed the new name in the box with "Also rename files..." and "To enable Undo..." checked, but not "Search in comments..." and pressed Next.

It scans for 2-3 seconds and then returns, having done nothing.

Any suggestions?

3 comments
Comment actions Permalink

Hello,

Does this issue reproduce on some solution or a sample that you can share with us? If no, please enable logging as described in https://resharper-support.jetbrains.com/hc/en-us/articles/115000607984-How-to-run-ReSharper-with-logging, try to perform the rename which fails, and send us the log.

Thanks!

0
Comment actions Permalink

Thanks Igor,

I have attached a log file to a support request #2345960

0
Comment actions Permalink

Thanks for the log!

It looks like the refactoring fails because of an exception in our code (https://youtrack.jetbrains.com/issue/RSCPP-27296). We're not sure what's causing it yet, we'll try to log more info to catch the issue.

0

Please sign in to leave a comment.