如何让 Visual Studio 像 NetBeans 一样突出显示有错误的代码文件?

发布于 2024-09-18 22:54:28 字数 281 浏览 3 评论 0原文

在(从 java)转向 c# 并使用 Visual Studio 后,我发现 Visual Studio 没有 Netbeans 的功能,即在文件浏览器中突出显示有错误的代码文件以及代码左侧包含错误的行。我认为这个功能非常有用,可以让我在按编译/运行之前找到一些错误。所以我想知道是否有 Visual Studio 的插件来启用此功能。

编辑:
我的意思不是在错误下划线! ,但在文件浏览器中的行开头和文件图标上插入一些错误图标(当我们有太多代码文件或文件中有太多行时,此功能的最大好处)

After moving to c# (from java) and using Visual Studio, I found that visual studio does not have the Netbeans' feature that highlight the buggy code files in files browser and lines that contains errors in the left side of the code. I think this feature very useful and let me find some error before press compile/run. so I want to know if there is a add-in for visual studio to enable this feature.

Edit :
I don't mean underline the error ! , but insert some error icon at line start and on the file icon in files browser (the big benefit of this feature when we have too many code files or too many line in a file)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

老旧海报 2024-09-25 22:54:28

您拥有什么版本的 Visual Studio? VS 2010 默认启用此功能。

What version of Visual Studio do you have? VS 2010 has this feature enabled by default.

荭秂 2024-09-25 22:54:28

您可以尝试使用 ReSharper,它具有代码分析功能,包括解决方案范围。

You could try using ReSharper, which has code analyses including Solution Wide.

不顾 2024-09-25 22:54:28

此功能需要启用两个插件:

  1. 突出显示有错误的代码文件(选项卡)使用:高效生产力工具
  2. 突出显示代码文件中的错误行,使用:ReSharper (感谢伊利亚雷任科夫

this features need two addin to be enabled :

  1. highlight buggy code files (tab) use : Productivity Power Tools
  2. highlight buggy lines in a code file use : ReSharper (thanks to Ilya Ryzhenkov)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文