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
 Snippets in any file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mr11
New Member

9 Posts

Posted - Aug 23 2016 :  09:02:00 AM  Show Profile  Reply with Quote
I used to be able to create snippets and associate them generically so they worked in any file type (this was a year or more ago) but now I can only add them for C++ related files. How do I set this up now? This feature was very useful as I work with file types that are not standard C++ extensions and the snippets were super useful.

Thanks in advance.

ChrisG
Whole Tomato Software

USA
299 Posts

Posted - Aug 23 2016 :  10:24:44 AM  Show Profile  Reply with Quote
It sounds like you need to enable VA for non-C++ file types.

You can do that through the registry, using this:
https://support.wholetomato.com/default.asp?W326

Hopefully that helps.
Go to Top of Page

Mr11
New Member

9 Posts

Posted - Aug 23 2016 :  11:08:56 AM  Show Profile  Reply with Quote
Will this allow me to use snippets in any file type or just the ones listed in the link you added?
Go to Top of Page

ChrisG
Whole Tomato Software

USA
299 Posts

Posted - Aug 23 2016 :  11:16:26 AM  Show Profile  Reply with Quote
Mostly those listed languages. I'm sorry, what file type are you using Visual Assist on?

You can force Visual Assist to recognize custom file extension as a C++ file, but you should only do that if it is true.
Go to Top of Page

Mr11
New Member

9 Posts

Posted - Aug 23 2016 :  11:54:53 AM  Show Profile  Reply with Quote
I work on proprietary file types. Let's just say the extension is .rkj, it's not but the point is when I am working on a .rkj file I want to be able to use snippets.
Go to Top of Page

ChrisG
Whole Tomato Software

USA
299 Posts

Posted - Aug 23 2016 :  12:09:04 PM  Show Profile  Reply with Quote
EDIT: Nevermind! There is a proper way to do this.

Edited by - ChrisG on Aug 23 2016 4:40:50 PM
Go to Top of Page

Dusan
Whole Tomato Software

Slovakia
177 Posts

Posted - Aug 23 2016 :  4:24:11 PM  Show Profile  Reply with Quote
I think that what you want is to use a Text snippet.

Please try following:

Open VA Snippet Editor using menu:
- VAssistX->Tools->Edit VA Snippets...

In VA Snippet Editor:
- Set Language to "Text"
- Set type to "All by Title"
- create some snippet
- click OK button to save changes

Then:
- Add .rkj file to Visual Studio project
- Being in that file, use menu VAssistX->Insert VA Snippet...
- Now you should be able to select your snippet

Does it work for you?

Edited by - Dusan on Aug 23 2016 4:26:44 PM
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