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
 Can I enable snippets for other file extensions?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

peterchen
Tomato Guru

126 Posts

Posted - Jun 08 2020 :  03:54:23 AM  Show Profile  Reply with Quote
Specifically, I'm trying to use the IDL UUID snippet in ... .idl files.

They work in .cpp and .h, but not in .idl files.
I also have some custom snippets I'd like to enable there.

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Jun 08 2020 :  07:45:22 AM  Show Profile  Reply with Quote
Is VA active in your IDL files? Is VA showing its Context and Navigation fields at the top of the editor window, and Alt-M works?

Which IDE and version of VA are you using?

VA is active, and snippets are working, in an IDL file for me here, using VS2017 and VA 2375.0.

zen is the art of being at one with the two'ness
Go to Top of Page

peterchen
Tomato Guru

126 Posts

Posted - Jun 08 2020 :  09:36:28 AM  Show Profile  Reply with Quote
Yes, VA is active: ALT-M opens the respecitve drop down from the VA toolbar, Alt-G offers to go to the definition, and a cusotm keyboard shortcut dutifully opens the VA Refactor Context Menu.

However, typing "uuid" does not pop up the suggestions (it works in .h and .cpp files). It is the same for other VA snippet shortcuts.
Generally, ther are no suggestions when typing.

(It works in .idl.h files, which is why it took me a long time to figure out when it works and when it doesn't...)

VA_X.dll file version 10.9.2366.0 built 2020.02.20
DevEnv.exe version 15.9.28307.1146 Community
msenv.dll version 15.0.28307.1000
Comctl32.dll version 6.10.18362.836
Windows 10 10.0 1909 Build 18363.836
8 processors (x86-64, WOW64)
Language info: 1252, 0x407

I've upgraded to
VA_X.dll file version 10.9.2375.0 built 2020.05.09
but behavior remains the same


Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Jun 08 2020 :  12:06:56 PM  Show Profile  Reply with Quote
What happens if you press the "Insert VA Snippet" toolbar button on the VA toolbar? Does this produce the VA Snippet menu, and allow you to select and enter a snippet into the file?

I am getting different results here on different machines, but in both cases the Insert VA Snippet toolbar button works correctly for me.

zen is the art of being at one with the two'ness
Go to Top of Page

peterchen
Tomato Guru

126 Posts

Posted - Jun 08 2020 :  12:10:28 PM  Show Profile  Reply with Quote
Snippets work as expected through the VA Menu and context menu.

It's only that typing doesn't lead to suggestions (and well, picking the correct snippet from the context menu is a bit painful...)

I've seen this behavior consistently on threee machines, but they have a very similar setup.



Edited by - peterchen on Jun 08 2020 12:12:10 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Jun 08 2020 :  2:18:51 PM  Show Profile  Reply with Quote
With the Snippet menu open, what happens if you press 'U'? I am assuming that since you are after the uuid snippet its title starts with 'u', so pressing this should help you to jump directly to the right part of the menu.

zen is the art of being at one with the two'ness
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Jun 08 2020 :  2:24:05 PM  Show Profile  Reply with Quote
Got it. Can you please try turning On

VA Options -> Suggestions -> Suggestion and Completion lists
Enable in C#

not really obvious, but this is enabling VA Snippet listboxes in .IDL files for me.

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