Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Macro brackets highlighting

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
maxim2000 Posted - May 25 2009 : 10:25:35 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
maxim2000 Posted - May 25 2009 : 1:41:27 PM
I've found some info about brackets in macro in C++ Standard. Now I see, thank you for the clear answer.
feline Posted - May 25 2009 : 11:40:19 AM
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

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000