Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Snippets export

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
joracine Posted - Jun 01 2009 : 4:27:22 PM
Hello tomatoes,

It would be nice to have a Snippet export/import feature. Something very simple, that would export a single or set of snippets to a text file/XML/whichever and then allow re-importing on another machine.

This way we can distribute/share a set of snippets to our coworkers more easily.

Thanks,
11   L A T E S T    R E P L I E S    (Newest First)
Dusan Posted - Oct 01 2014 : 2:13:20 PM
In new VA Snippet Editor for VS2010+ you can also use Copy/Paste to share snippets.
When you copy a VA Snippet � not just its code � Visual Assist places an XML version of the VA Snippet in the clipboard.
You can copy one or multiple VA Snippets in a single operation, making it easy to copy a suite of VA Snippets from one programming language to another.
Before copy, select snippets using Shift+Click and Ctrl+Click.

It is placed into clipboard in simple XML without header.
This XML can be used on other computer to rectreate snippets by use of Paste tool.

More about new Snippet Editor:
http://docs.wholetomato.com/default.asp?W476
feline Posted - Sep 30 2014 : 8:45:14 PM
We do, its just not exposed in the snippet editor yet. This FAQ entry explains how to do this:

http://docs.wholetomato.com/default.asp?W433
arunsubramaniam Posted - Sep 30 2014 : 7:20:10 PM
quote:
Originally posted by feline

We are considering adding the ability to have two snippet files, a local and a team file, that VA merges together in memory:

case=1008

For now you can simply use folder junctions / symbolic links to make the VA Snippet folder point at a network location. Exactly how you do this will depend on your OS, since newer versions of Windows have added new ways of doing this.



Does the latest VAX include this feature. Or i still need to backup the whole snippet file?

like a folder which includes only my specific code snippets
feline Posted - Mar 20 2014 : 12:53:26 PM
It partly depends on your IDE. This FAQ entry tells you where the latest version of the Snippets are stored, your actual snippets are one directory higher:

http://docs.wholetomato.com/default.asp?W449

Hopefully this is clear. If you have any problems locating your snippet files, please just say, but also let me know the IDE you are using.
MoonQuaker Posted - Mar 20 2014 : 03:27:03 AM
Still, failed to locate my snippet(made many cool snippets) files/data !?

My c:\\Program Files (x86)\\Visual Assist\\AutoText\\ is empty from any files. Yet it contains "\\Latest\\" folder which in did have 'Cpp.tpl' BUT it seems none of my new Snippets exists there, nor at any file in my HD. (-I've searched all files by content. -simple and unique snippet content)

Where is it being stored, then? (Also failed to locate it at my Win7 Registry)

Pretty enigmatic...
feline Posted - Jul 10 2009 : 3:49:59 PM
If it only a small number of individual snippets then they can simply be emailed around, perhaps as a code file. Then you can select each snippet in turn, Shift + Right click and use the command "Create VA Snippet from selection..." to speed up the process of adding the snippets to your individual lists.
ice_berge_00 Posted - Jul 09 2009 : 11:22:31 AM
I would also like to request an import/export feature for snippets (even if it was only 1 at a time).

As you mentioned it is a simple text file and can be edited by hand or with tools.

We have several developers using VA here and some have created useful snippets they want to share with others, but not everyone wants to just replace their snippet file with the other persons and some are not as savy with programs for manipulating the text directly.

It isn't a critical thing to have but would be handy for those types of situations. The case you mentioned for a team and individual files would help with this. Having the ability to export single snippets would provide more options to use though.

No matter what, it's still a great tool!
feline Posted - Jun 19 2009 : 2:40:45 PM
We are considering adding the ability to have two snippet files, a local and a team file, that VA merges together in memory:

case=1008

For now you can simply use folder junctions / symbolic links to make the VA Snippet folder point at a network location. Exactly how you do this will depend on your OS, since newer versions of Windows have added new ways of doing this.
leigh.kendall Posted - Jun 19 2009 : 2:29:46 PM
Would be nice if the location for snippets was configurable, so you could set the path to a network drive for shared use by a team. Or better yet, have a personal path and team path which would be merged within VA/VS.

Besides manually copying a centralized copy of VA snippets to each dev machine for sharing, is there a better option currently?
joracine Posted - Jun 02 2009 : 2:53:37 PM
Oh, sweet. Thanks :)
feline Posted - Jun 02 2009 : 12:59:14 PM
The VA Snippets are actually stored as simple text files, so you can simply copy the files from one machine to another. This FAQ entry will help you locate these TPL files:

http://support.wholetomato.com?W434

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