计算包含Visual Studio解决方案的代码行数 [英] Count how many lines of code contains a Visual Studio solution
本文介绍了计算包含Visual Studio解决方案的代码行数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
一个团队将分析我们的.NET解决方案代码.在此之前,我们想知道项目中包含多少行代码.
One team will analyze our .NET solution code. Before that, we wondered how many lines of code contains our project.
是否有办法实现这一点(在VS 2010中)?
Is there a way to achieve find out this (in VS 2010) ?
推荐答案
打开搜索( ctrl + shift + f ),
Open the search (ctrl+shift+f),
搜索解决方案中的所有文件(* .cs或* .vb),使用正则表达式 ^
(行首).
Search for all files in the solution (*.cs or *.vb), use regular expression ^
(line beginning).
等等.
PS.
您可以使用 ^.+ $
(@ ssc-hrep3建议)
PS.
you can filter out empty lines with ^.+$
(a @ssc-hrep3 suggestion)
这篇关于计算包含Visual Studio解决方案的代码行数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文