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
 Technical Support
 Insert code snippet from VS Macro?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pvercello
New Member

8 Posts

Posted - Dec 14 2009 :  7:24:37 PM  Show Profile  Reply with Quote

Hi there,

I'm wondering if it's possible to insert a code snippet programmatically from a Visual Studio macro? Doing DTE.ExecuteCommand("VisualAssistX.VaSnippetInsert") corresponds to putting up the code snippets menu, but I don't see any way to request a particular snippet by name. Anyone know how to do this?

Thanks
-Paul

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Dec 15 2009 :  09:31:52 AM  Show Profile  Reply with Quote
Currently this cannot be done. If you are only using simple VA Snippets then you could simply have the IDE macro insert the VA Snippet text its self. I know its not the same, but it might help a bit.

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