Tuesday, June 30, 2015

Copying and pasting highlighted/selected text from Test Output window

If you use TestContext.WriteLine or Console.WriteLine to output text to the Test Output window, unfortunately, the only operation you can perform for text in the Test Output window is right-clicking and selecting "Copy All"

If, instead, you want to select or highlight a portion of text from the Test Output window, you are out of luck.  You are forced to perform a "Copy All" operation and paste it into a Text Editor and then highlight and copy out the text that you actually need.

If you find this functionality a bit annoying and wish that Microsoft would allow highlighting and selecting text to copy from the Test Output window, you should vote for this UserVoice item here: http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/8631334-provide-ability-to-select-specific-text-to-copy-fr

No comments:

Post a Comment