35

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

2
  • 13
    This question shouldn't be marked as "Off-Topic" since it's not off-topic. This question is related to software tools commonly used by programmers (stackoverflow.com/help/on-topic)
    – Hoh
    Commented Aug 22, 2014 at 14:09
  • 4
    Not sure [OFFTOPIC] ?It is a valid question which the user dont have answer & related to a particular software tool usage. - IN error list window select only columns(Description normally) that you wanted to copy first and then copy, paste in google for solutions !
    – Jay
    Commented Aug 5, 2015 at 1:05

4 Answers 4

22

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.

3
  • 10
    Even though this is the right answer, it's a real pain to use. What if you have many errors in the list? You have to scroll through the list and manually find the right one instead of hovering over the error in the file and copying it. There needs to be a better way. Commented Feb 13, 2018 at 16:26
  • 1
    Can you copy all of them at once? EDIT: CTRL-A to select all and then copy, works!
    – Xonatron
    Commented Mar 10, 2019 at 19:28
  • Nope. only gets you the first part of the compiler message. I.E. unclear function calls will not have the "possible candidates" section. Commented Sep 8 at 9:27
8

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

1
  • what about VStudio 2015... i mean how to do that ?
    – gumuruh
    Commented Jul 30 at 10:07
3

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

1
  • @Exception: No, it's an answer. That's how you copy the error message - you get it into the error list...
    – Jon Skeet
    Commented Aug 22, 2014 at 8:27
1

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

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.