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 not working for JavaScript in vs2013
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Juxta
Senior Member

27 Posts

Posted - Nov 12 2013 :  5:59:23 PM  Show Profile  Reply with Quote
vs2010 it works fine.
When you type the shortcut, you still get the suggestion, but when you accept, you only get the first word of the snippet.
example:
If i type "fun" for the snippet "function $end$() {}"
I will only get "function" inserted.












accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Nov 12 2013 :  10:30:50 PM  Show Profile  Reply with Quote
What you are seeing is a Visual Studio snippet. Visual Assist snippets have a different icon:



js snippets are offered in script blocks within html and asp files. To insert a VA snippet you can press its toolbar icon:


Edited by - accord on Nov 13 2013 1:12:26 PM
Go to Top of Page

Juxta
Senior Member

27 Posts

Posted - Nov 21 2013 :  5:11:38 PM  Show Profile  Reply with Quote
So VA snippets dont work either in 2013. Seems as though things are getting worse. I had to hack registry settings just to get VA to work at all on JS file.
Is there a way to get this working?
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Nov 21 2013 :  5:30:52 PM  Show Profile  Reply with Quote
I saw VA javascript snippets on your screenshot so I thought everything is normal and this is just a misunderstanding.
But you may need to do the following:
http://docs.wholetomato.com?W326

Does this help?
Go to Top of Page

Juxta
Senior Member

27 Posts

Posted - Nov 21 2013 :  6:31:35 PM  Show Profile  Reply with Quote
Thanks but I already have this implemented.

This is vs2013
I dont see the same context menu as in your screenshots.
May this is not yet implemented?
I would also like to acknowledge that those are indeed vs snippets. They behave differently and you need to tab through these to get them to work.
They do almost as good a job so that makes me a bit happier but im sure Whole Tomato could to it better

Edited by - Juxta on Nov 21 2013 6:36:42 PM
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Nov 22 2013 :  9:15:45 PM  Show Profile  Reply with Quote
Have you enabled VA for additional file types with the registry key modification?

As far as I know js snippets are offered in script blocks within html and asp files. To insert a VA snippet you can press its toolbar icon.
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