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
 New Refactoring: Extract typedef.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Rain Dog
Ketchup Master

88 Posts

Posted - Feb 15 2009 :  10:09:35 PM  Show Profile  Reply with Quote
Would enable you to select some code, and extract a typedef such as:

std::map<int, std::pair<int,std::string> > mymap;

into:

typedef std::map<int, std::pair<int,std::string> > map_t;


I think it could be taken one step further and automatically suggest you create typedefs for STL container iterators for const_iterator and iterator as all STL containers support them.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Feb 16 2009 :  3:30:41 PM  Show Profile  Reply with Quote
Have you seen this topic?

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=7954
Go to Top of Page

Rain Dog
Ketchup Master

88 Posts

Posted - Feb 16 2009 :  9:49:53 PM  Show Profile  Reply with Quote
I have, but it is not the same as simply resting the cursor on a variable and having a typedef created for it.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19004 Posts

Posted - Feb 20 2009 :  11:50:44 AM  Show Profile  Reply with Quote
We are discussing a possible solution, via VA Snippets, in this thread:

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

zen is the art of being at one with the two'ness
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19004 Posts

Posted - Feb 21 2009 :  11:30:15 AM  Show Profile  Reply with Quote
From the other thread I have put in a feature request for a new token / reserved word in VA Snippets:

case=24243

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