Skip to main content

Notifications

Announcements

No record found.

Visual studio – Copy all from Find Symbol Results

can-i-copy-multiple-rows-from-the-visual-studio-find-symbol-results-window

https://stackoverflow.com/questions/1173808/can-i-copy-multiple-rows-from-the-visual-studio-find-symbol-results-window

Sometimes it is probably useful to copy all the data from the Symbol results window in Visual studio. Either to process it manually or to run some analysis on it (Or whatever reason you fancy). Unfortunately Visual studio only allows you to copy one result at a time from that window which doesnt make it very friendly. I had over 600 results

Bring in AutoHotKey ! This is an extremely powerful scripting language. It runs off keyboard shortcuts, so you can run this from where your cursor is pointed at.
For my scenario, i managed to make it run with Ctrl + j and it goes through all the lines so quickly that VS doesnt skip to the source reference file.
Once installed, run it in the same context as Visual studio i.e. is VS is running as an administrator then run the script as an administrator as well (So that VS doesnt capture the hotkeys and keep it to itself)

https://github.com/shashisadasivan/MyScripts/blob/master/Misc/Visual%20Studio/VSCopySymbolResult.ahk

Comments

*This post is locked for comments