Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 A Problem with Refactor "Rename"
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

donald3102
Starting Member

China
1 Posts

Posted - Nov 20 2006 :  10:26:41 AM  Show Profile  Reply with Quote
Refactor is very useful in my work. But I found that "rename" only works in the file that opened. For example, if I want change variable "point" to "m_point", variables in the .cpp file had changed, but still remain "point" in .h file. I think "rename" shoule change all variable names in the Project(Solution), not only the .cpp file.
A plugin named ref++(http://refpp.com) works well. But the speed is too slow to stand.

rhummer
Tomato Guru

USA
527 Posts

Posted - Nov 20 2006 :  10:30:00 AM  Show Profile  Reply with Quote
What version of VA X are you using? I've used Rename on a whole project a few times and it works just fine.

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Nov 20 2006 :  2:45:37 PM  Show Profile  Reply with Quote
Can you try running Find References on "m_point" and see what happens? Rename uses the results from Find References to do the code changes.

I use rename quite a lot, and it always updates all of the files for me.
Are you using source control, so that the .h file is not yet checked out and is marked as read only?

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000