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
 VA Snippets and Refactor reserve strings
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jtwillia
New Member

USA
8 Posts

Posted - May 19 2008 :  09:18:45 AM  Show Profile  Reply with Quote
Why do the refactor reserved strings not work in normal snippets?

My suggestion is make them work. For example, if I make a snippet with $SymbolName$, it just prompts me for a parameter. But at the time I invoke my VA Snippet, VAX should be able to figure out what method my cursor is current in and do the proper substitution, and in cases where it cannot then it should prompt.

So my real world example was to create a snippet for inserting:
OnPropertychanged("$SymbolName$");

As far I see, it cannot be done. I did find if I rename my VA Snippet to start with the world Refactor, that when I right click in the snippet editor the Refactor variables are there but they still don't expand.

Edited by - jtwillia on May 19 2008 09:19:27 AM

rhummer
Tomato Guru

USA
527 Posts

Posted - May 19 2008 :  10:22:33 AM  Show Profile  Reply with Quote
IIRC it's on the list of 'to be done.' I'm not sure what the case number is though, Feline will have more info on that.

It has been requested before though. :)

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

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18951 Posts

Posted - May 19 2008 :  11:47:22 AM  Show Profile  Reply with Quote
As rhummer says we are considering this:

case=3204

Especially for some of the refactoring tokens used by Document Method it is easy to think of situations where they cannot be expanded correctly by VA. So this would need to fail in a graceful manor.

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