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
 Feature Requests
 Encapsulate Field - different case?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rec
New Member

2 Posts

Posted - Nov 11 2008 :  05:39:46 AM  Show Profile  Reply with Quote
I want to be able to change the case used by the Encapsulate Field refactor snippet. For example, if I encapsulate the following member variable:

int baud_rate_;


I will get the following:

int Baud_rate() const { return baud_rate_; }
void Baud_rate(int val) { baud_rate_ = val; }


I want to be able to change the case, so the methods start with a lower-case character, e.g.:

int baud_rate() const { return baud_rate_; }
void baud_rate(int val) { baud_rate_ = val; }


How about making this simple - using the 'Edit Snippets' option you could simply change $GeneratedPropertyName$ to $generatedPropertyName$ (note the lower-case 'g' at the start). This would 'tell' VA-X to start the method name with a lower-case character.

Some support for modifying the case used by VA-X refactoring snippets would save me a LOT of time.

andre.horst
Tomato Guru

Germany
150 Posts

Posted - Nov 12 2008 :  08:56:25 AM  Show Profile  Reply with Quote
Read this

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=8304
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