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
 AutoText: more macros
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

peterchen
Tomato Guru

126 Posts

Posted - Aug 10 2006 :  11:02:15 AM  Show Profile  Reply with Quote
It would be nice if AutoText could refer to some macros using the current code context, e.g.:

Autotext for oper

bool operator==($CLASS$ const & rhs) const
{
$end$
}

so when I have:

class CFoo
{
oper
};

the oper gets expanded to
bool operator==(CFoo const &rhs)


Also others similar to the ones available in refactoring.

rhummer
Tomato Guru

USA
527 Posts

Posted - Aug 10 2006 :  10:41:32 PM  Show Profile  Reply with Quote
There is a request to add the refactor autotext keywords to the insert menu item.

I think this would fall in with what you want.

case=1969

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

Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 06 2006 :  7:45:28 PM  Show Profile  Reply with Quote
Fixed in 1538.
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Oct 07 2006 :  11:55:36 AM  Show Profile  Reply with Quote
whoops - case=1969 is fixed in 1538 but this request is actually case=2050. 2050 is not implemented in build 1538.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jan 27 2009 :  10:08:19 PM  Show Profile  Reply with Quote
case=2050 is implemented in build 1715
New tokens are $NamespaceName$, $BaseClassName$, $ClassName$, $MethodName$, and $MethodArgs$.
These should not be used in refactoring snippets.

Whole Tomato Software, Inc.
Go to Top of Page

peterchen
Tomato Guru

126 Posts

Posted - Jan 28 2009 :  11:40:18 AM  Show Profile  Reply with Quote
Oh drat, now I have to update ;)

Thank you!
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