简体   繁体   English

如何在 Visual Studio 中复制错误消息

[英]How do I copy error messages in Visual Studio

I just started with C# and VS, how is possible to copy my error message.我刚开始使用 C# 和 VS,怎么可能复制我的错误消息。

In the below image I want to copy 'System.Net.HttpWebRequest...在下图中,我想复制'System.Net.HttpWebRequest ...

在此处输入图像描述

在菜单栏中选择“查看”并启用“错误列表”,默认情况下会在屏幕底部弹出“错误列表”,其中包含可能复制邮件的所有错误。

尝试重建解决方案,然后您可以从错误列表中复制此错误。

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.通过仅复制或搜索(使用 Bing、Google 或 StackOverflow)错误描述,可以更轻松地处理 Visual Studio 错误列表中的项目。

错误助手的使用

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.当有 bug 需要修复时,您不希望重新输入错误消息或剪贴板中充满无用的垃圾。

Go to Tools > Options > Error Helper and choose to search with Bing, Google, or StackOverflow. Go 到工具 > 选项 > 错误助手并选择使用必应、谷歌或 StackOverflow 进行搜索。 You can also opt to remove file paths from search strings.您还可以选择从搜索字符串中删除文件路径。

It's available for Visual Studio 2022 and Visual Studio 2019它适用于Visual Studio 2022Visual Studio 2019

尝试构建程序,然后从错误列表窗口中按Ctrl + C(或右键 - >复制)复制错误

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何添加到Visual Studio错误列表窗口中的MESSAGES列表? - How do I add to the MESSAGES list in the Visual Studio Error List window? 我该怎么做:Visual Studio 没有显示错误描述 - how do i do that: Visual Studio shows no error description Rhino Mocks和Visual Studio:如何解决此错误? - Rhino Mocks and Visual Studio: How do I fix this error? 如何在Visual Studio 2013中将Web参考从一种解决方案复制到另一种 - How do I copy a web reference from one solution to another in Visual Studio 2013 如何设计看起来像Visual Studio错误列表的C#视觉主题 - How do I design a C# visual motif that looks like visual studio error list 删除 Visual Studio Code 中的本地化错误消息 - Remove localized error messages in Visual Studio Code Visual Studio Runner中的xUnit错误消息 - xUnit error messages in the Visual Studio Runner 如何在 Visual Studio 中附加数据库 - How do I attach a database in Visual Studio 如何在 Visual Studio 中修复此错误? - how can i fix this error in visual studio? 对于我在 Visual Studio 2013 中的类库项目; 使用后期构建事件如何将创建的 dll 复制到另一个路径? - For my class Library project in visual Studio 2013 ; Using post build event how do I copy the created dll to another path?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM