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
 Ignoring useless macros
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

GKarRacer
Ketchup Master

USA
58 Posts

Posted - Jan 20 2012 :  1:01:19 PM  Show Profile  Reply with Quote
Is there a way to disable suggesting of certain macros? For example every time I type "const" and hit <ENTER>, VA changes it to "CONST". I'm sure this is because somewhere in the MS header files CONST is defined (probably to const). Since I never use CONST, I find this rather annoying.

This also applies to other common useless keyword macro overrides, like STATIC_CAST, etc.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jan 20 2012 :  5:29:31 PM  Show Profile  Reply with Quote
If you type in lower-case, it should offer "const" instead of CONST. What Visual Studio and Visual Assist versions are you using? I wasn't able to reproduce the problem using VS2010 and VA1862.
Can you please post a screenshot of what you see if you type "const"?
Go to Top of Page

GKarRacer
Ketchup Master

USA
58 Posts

Posted - Jan 23 2012 :  2:47:05 PM  Show Profile  Reply with Quote
I've included an image that contains three different suggestions while typing in the same project. The item highlighted in the list is what came up by default as I'm typing. The fourth section (the one on the right) is from hitting ALT-G on CONST.

Since you mentioned you were seeing something different, I tried this is in a different project and strangely enough I got different results. Both of these projects include more or less the same header files.

In the other project it did offer suggestions the way I would like:

const showed only const and const_cast in the list with const highlighted.
double showed DOUBLE, double, and DOUBLE_CLICK with double highlighted.
static_cast showed many suggestions with static_cast highlighted.

Now I'm not sure what's going on.



Go to Top of Page

GKarRacer
Ketchup Master

USA
58 Posts

Posted - Jan 23 2012 :  3:14:36 PM  Show Profile  Reply with Quote
Sorry forgot the version in the last post: 1862

The second project was in a different instance of Visual Studio, so I tried unloading the original project and then reloading it. Same results. Then exiting that instance of VS and reloading the project. New results:

  • const: CONST, const, const_cast with const highlighted.

  • dou (i.e. first three letters of double): double, DOUBLE with DOUBLE highlighted.

  • double: double, DOUBLE, DOUBLE_CLICK, doubleint with double highlighted.


I tried manually suggestion "double" after typing "dou" and now it seems to remember my preference as typing "dou" again I correctly get "double". So, at the moment it seems fine again.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jan 24 2012 :  10:31:13 AM  Show Profile  Reply with Quote
You mean, you exited all VS instance and reloaded the project you had problems with and VA started behaving?

Visual Assist normally takes a lot of circumstance into account to build suggestion listboxes and decide on the default value. Criteria, like what suggestions you accepted, what symbols are near the caret. For example, if you have "Apple" and "Apple2" in a class, and you start typing in a method of this class, VA will offer "Apple" when you type "Ap", by default. But if "Apple2" happens to be used on the previous line, it will offer "Apple2". I have found this practical. Combined with smart suggestions, I often get the right default value highlighted without typing a letter. (Smart suggestions are based on context, e.g. when you type in arguments). Complex systems like this may misbehave sometimes (but rarely in this case).

If you will ever run into something similar, accepting the right listbox items might help. But you would be able to reset VA's memory via rebuilding your symbol databases which should help if VA was stubborn:

VA Options -> Performance -> Rebuild

Edited by - accord on Jan 24 2012 10:42:07 AM
Go to Top of Page

GKarRacer
Ketchup Master

USA
58 Posts

Posted - Jan 25 2012 :  3:00:45 PM  Show Profile  Reply with Quote
No, I only exited and restarted the one instance. The others were left running. Normally I have at least 2-3 instances of VS running all the time.

Perhaps it's probably a good idea just to rebuild the symbol database every so often. I can't even remember the last time I did that. So far VS is working correctly.
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