How can I save the contents of the "CodeLens References" window to a file in Visual Studio 2015?

Viewed 1860

The is a pretty neat window showing you what references your class, the "CodeLens References" Window. You get it by clicking in the references link that appears above your class name and selecting "Dock Popup" icon. It looks like:

The CodeLens Popup

Now how do I save the contents of that window to a text file? There is no menu, tried a Window-text-grabber app, no luck. Hopefully there is a VS plugin that can help but none found yet.

V.

2 Answers

As @NullPointerWizard pointed out in a comment:

"The "Find in Files" tool (CTRL+SHIFT+F) may be better here"

The Results window allows to you select and copy the lines directly as text (Ctrl+C or Right-click > Copy). This not only avoids workarounds like OCR but allows for copying all the results (possibly several screen lengths) simultaneously.

Related