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
 Reset code snippets?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

JustinG
New Member

7 Posts

Posted - May 07 2021 :  12:43:00 PM  Show Profile  Reply with Quote
Hello, I just noticed Code snippets and excited to create my own, I started deleting the existing ones.

However, I just realized there's some useful things in there that I may have already deleted.

So is it possible to reset and get the original snippets back without installing?
I'd hate to miss out of all the wonderful shortcuts built into VA because I deleted them without noticing. :)


Or maybe if the snippets are all in a folder somewhere, would someone mind sending over a zip with the originals? Thankyou!

Edited by - JustinG on May 07 2021 12:50:05 PM

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - May 10 2021 :  07:15:01 AM  Show Profile  Reply with Quote
VA keeps a copy of the default set of snippets that ship with the installer. We just need to copy these over to your current VA Snippets directory to restore the default set.

First locate VA's install directory, this page explains how to do so:

https://docs.wholetomato.com/default.asp?W105

once you have the directory, you are looking for the files:

Autotext\Latest\*.TPL

there is one file per language, so it depends which language you want, the most likely ones are "Cpp.TPL" for C++ and "CS.TPL" for C#

Simply copy the files you want, and you need to copy them to:

%APPDATA%\VisualAssist\Autotext
you may want to restart the IDE after doing this. If you just edit the files VA will notice and reload them, but since you will be going to an older version I am not sure if this will trigger the reload automatically or not.

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