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
 [VS2012] Manual reference highlighting activation?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ingenious
Senior Member

25 Posts

Posted - Apr 06 2013 :  05:56:14 AM  Show Profile  Reply with Quote
I see VS2012 has built-in reference highlighting for symbols under the cursor, and VAX has the same (overriding) feature. Unfortunately, both automatically highlight all references of a symbol every time the cursor moves over a it. This can be very distracting to the eye when the user has set very vivid highlighting colors. I'd love to have the option to manually activate reference highlighting in the editor, e.g. whenever I select the whole symbol. Is something like this currently possible? Thanks!

EDIT: Actually, the "Find References" command does exactly what I want. But every time I invoke it, the "VA Find References Results" tool window pops up. Any idea how to prevent that? Still, it would be really great if I could automatically see symbol references when I select the whole symbol.

Edited by - ingenious on Apr 06 2013 06:16:39 AM

feline
Whole Tomato Software

United Kingdom
19166 Posts

Posted - Apr 06 2013 :  8:57:03 PM  Show Profile  Reply with Quote
Find References always uses the Find References Results window. If you pin the results window open it won't move when you trigger the Find References command, but it will still get focus.

A different approach would be to bind a keyboard shortcut to the command VAssistX.FindSelected, I have bound Alt+K to this myself.

This will highlight all instances of the symbol under the caret, as if you had done an IDE find on the symbol, and the highlighting is dismissed when you press Escape.

Then you can turn off both:

VA Options -> Advanced -> Refactoring -> Automatically highlight references to symbol under cursor

IDE tools menu -> Options -> Text Editor -> C/C++ -> Advanced -> Disable Reference Highlighting

to only have highlighting on demand.

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

ingenious
Senior Member

25 Posts

Posted - Apr 07 2013 :  04:39:41 AM  Show Profile  Reply with Quote
Thanks a lot, feline! That's exactly what I was looking for
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19166 Posts

Posted - Apr 07 2013 :  4:00:55 PM  Show Profile  Reply with Quote
Excellent, I am glad I could help

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