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
 Macro brackets highlighting
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

maxim2000
Ketchup Master

68 Posts

Posted - May 25 2009 :  10:25:35 AM  Show Profile  Reply with Quote
1. Matching brackets aren't highlighted in macros. It can be any macro, e.g.
#define LOWORD(l) ((WORD)((DWORD_PTR)(l) & 0xffff))

2. I'm not sure about next question place, so I'm putting it here.
Let's assume I want to define a new class in C++.

So, I'm typing 'c' and seeing a suggestion list with word 'class'. If I highlight it with arrows a tooltip will appear: "Accept with: <ENTER>". Then I press ENTER and see 'class' typed.

But if I type 'class' manually, then the tooltip of 'class' in the suggestion list is "VA Snippet [Edit]. Accept with: <ENTER>". And if I press ENTER VA snippet will appear with full class declaration template.

The question is how can I call VA snippet by pressing 'c' key only (not typing 'class' manually)? It seems I could do this with some earlier VA versions. I see the same effect with such keywords like class, struct, switch etc.


VA 1724 + VS2005

feline
Whole Tomato Software

United Kingdom
18948 Posts

Posted - May 25 2009 :  11:40:19 AM  Show Profile  Reply with Quote
VA makes no attempt to highlight matching brackets in macros. This is by design, because there is no requirement for brackets to actually match in macro's. In fact it is fairly common to encounter macros where the brackets do not match, for example there are only opening curly brackets with no closing curly brackets.


For VA Snippets, you just need to change the shortcut for the "class" snippet, or else duplicate the existing "class" snippet and give the new, duplicate entry the shortcut "c":

http://www.wholetomato.com/products/features/vasnippets.asp

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

maxim2000
Ketchup Master

68 Posts

Posted - May 25 2009 :  1:41:27 PM  Show Profile  Reply with Quote
I've found some info about brackets in macro in C++ Standard. Now I see, thank you for the clear answer.
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