Author |
Topic |
|
maxim2000
Ketchup Master
68 Posts |
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 |
|
feline
Whole Tomato Software
United Kingdom
19022 Posts |
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 |
zen is the art of being at one with the two'ness |
|
|
maxim2000
Ketchup Master
68 Posts |
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. |
|
|
|
Topic |
|
|
|