Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 how to custom a refactor?

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
newerC Posted - Aug 04 2008 : 11:28:19 AM
how to custom a refactor?

TCHAR szClass[MAX_PATH];
I want to define my refactor to do following things!!!
eg: szClass ---> sizeof(szClass)/sizeof(TCHAR);

//////////////////////////////////////////////////
Refactor Create sizeof
$end$sizeof($SymbolName$)/sizeof($SymbolType$)
////////////////////////////////////////

When i create a suggestion like that, it doesn't work.
And the refactor "Create sizeof" didn't appear in the refactor menu???

help!!!!
2   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Aug 04 2008 : 11:56:21 AM
the case for refactoring tokens in normal snippets is:

case=3204

Here you can use both $selected$ and $clipboard$ so with a bit of care you can have a normal snippet do this, using $clipboard$ for the type and $selected$ for the symbol name.
rhummer Posted - Aug 04 2008 : 11:39:37 AM
You cannot create you own custom refactor options. You only see the Refactor options inside the VA Snippets editor so that you can customize the available refactoring options.

For what you are trying to do using the normal Snippets is your only route. There is a case # out there that is supposed to add some of the refactor keywords to normal snippets. I don't know the number off hand, or how many keywords are to be supported outside the refactor options, but I'm sure feline can find that. :)

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