Error highlighting in Visual C++

老子叫甜甜 提交于 2019-12-13 15:12:14

问题


When using Eclipse or NetBeans IDE on a Java project I get to see where errors in my code are, before and after compiling. The line causing the issue is shown. I remember that back in the old days, the Visual C++ 98' edition did do underlining of errors in the code. Is there a way to enable this in Visual C++ 2005? Or is there a 3rd party plugin to do so?


回答1:


What you need in order to do this is a static code analysis tool for C++ with a real-time plug-in for VS2005. Unfortunately, I'm not aware of any open-source static code analyzers that plug into VS2005, but there are some commercial ones. One such product that has been well-received is Riverblade's Visual Lint.

In general, Googling "visual c++ static code analysis" is a good place to start hunting this type of software down.




回答2:


Visual Assist is also a useful tool. Works with all versions of visual studio.



来源:https://stackoverflow.com/questions/431154/error-highlighting-in-visual-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!