'How do I copy error messages in Visual Studio

I just started with C# and VS, how is possible to copy my error message.

In the below image I want to copy 'System.Net.HttpWebRequest...

enter image description here



Solution 1:[1]

Select "View" in menu bar and enable "Error List" which will pop up on the bottom of the screen by default containing all the errors with possibility to copy the message.

Solution 2:[2]

Try to rebuild solution and then you can copy this error from Error List.

Solution 3:[3]

Try to build your program, then from the Error List Window you can copy an error by pressing Ctrl+C (or right-clic -> copy)

Solution 4:[4]

You can use this extension:

Error Helper

Make it easier to work with items in the Visual Studio Error List by copying or searching (with Bing, Google, or StackOverflow) for just the description of an error.

Error Helper usage

No more wasting time copying the whole row and then extracting the description. This extension adds helper commands to make it easier for dealing with errors.

When there are bugs to fix, you don't want to be messing about with re-typing error messages or a clipboard full of unhelpful junk.

Go to Tools > Options > Error Helper and choose to search with Bing, Google, or StackOverflow. You can also opt to remove file paths from search strings.

It's available for Visual Studio 2022 and Visual Studio 2019

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 razakj
Solution 2 Jozef Cechovsky
Solution 3 vincentp
Solution 4 Ramon Dias