Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 [VS2012] Manual reference highlighting activation?

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
ingenious Posted - Apr 06 2013 : 05:56:14 AM
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.
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Apr 07 2013 : 4:00:55 PM
Excellent, I am glad I could help
ingenious Posted - Apr 07 2013 : 04:39:41 AM
Thanks a lot, feline! That's exactly what I was looking for
feline Posted - Apr 06 2013 : 8:57:03 PM
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.

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