Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Encapsulate Field - different case?

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
rec Posted - Nov 11 2008 : 05:39:46 AM
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.
1   L A T E S T    R E P L I E S    (Newest First)
andre.horst Posted - Nov 12 2008 : 08:56:25 AM
Read this

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=8304

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000