Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Insert code snippet from VS Macro?

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
pvercello Posted - Dec 14 2009 : 7:24:37 PM

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
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Dec 15 2009 : 09:31:52 AM
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.

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