如何让 Visual Studio 像 NetBeans 一样突出显示有错误的代码文件?
在(从 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您拥有什么版本的 Visual Studio? VS 2010 默认启用此功能。
What version of Visual Studio do you have? VS 2010 has this feature enabled by default.
您可以尝试使用 ReSharper,它具有代码分析功能,包括解决方案范围。
You could try using ReSharper, which has code analyses including Solution Wide.
此功能需要启用两个插件:
this features need two addin to be enabled :