如何显示我的项目在Visual Studio中包含多少行代码? [英] How do I show how many lines of code my project contains in Visual Studio?

查看:168
本文介绍了如何显示我的项目在Visual Studio中包含多少行代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
您如何计算行数Visual Studio解决方案中的代码?

Possible Duplicate:
How do you count the lines of code in a Visual Studio solution?

如何在Visual Studio 2008 Professional SP1中显示代码指标窗口?我正在查看我的项目在学校中总共有几行代码,但找不到.

How can I show the code metrics window in Visual Studio 2008 Professional SP1? I'm looking to see how many total lines of code my project is for school and I can't find it.

说该帮助文件转到查看"->其他Windows"->代码度量",但是该选项对我不可用.我还尝试在解决方案资源管理器中右键单击该项目,以查看是否有选项,但没有.

The help file said to go to View->Other Windows->Code Metrics, but this option is not available to me. I also tried right-clicking the project in the Solution Explorer to see if there was an option but there wasn't.

这个神话般的独角兽在哪里?如果Pro版本没有此功能,是否有人找到一种简单的外部方法来自动计算所有.cs文件中的行数?

Where is this mythical unicorn of a feature? If the Pro version doesn't have this feature has anyone found a simple external method to count the lines in all .cs files in an automated way?

推荐答案

代码度量标准仅在Visual Studio 2008的团队系统版本中可用.如果您拥有Express Edition,Standard或Professional,则很不走运.

Code Metrics is only available in the Team System versions of Visual Studio 2008. If you have an Express Edition, Standard, or Professional you're out of luck.

在此处查看评论和屏幕截图:

See comments and screenshots here:

  • http://blogs.msdn.com/fxcop/archive/2007/10/03/new-for-visual-studio-2008-code-metrics.aspx
  • http://blogs.msdn.com/somasegar/archive/2007/10/04/code-analysis-features-in-vs-2008.aspx

这篇关于如何显示我的项目在Visual Studio中包含多少行代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆