在代码行数 [英] Number of lines in code
本文介绍了在代码行数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有一个工具还是其他什么东西算在一个特定的C#项目的行数?只是出于好奇...
Is there a tool or something else to count the number of lines in a specific C# project? Just out of curiosity...
推荐答案
我相信有工具,但我觉得它更容易只使用在文件中查找选项并使用这个表达式:
I believe there are tools, but I find it easier to just use the Find in Files option and use this regex:
^~(:Wh@//.+)~(:Wh@\{:Wh@)~(:Wh@\}:Wh@)~(:Wh@/#).+
这正则表达式是由这里,这也说明了如何搜索它。它将返回一个号码相匹配的行
That regex is from here, which also shows how to search for it. It will return a number of matching lines (i.e. the number of lines in your code)
这篇关于在代码行数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文