如何计算我在 VB.NET 中编写的代码总行数? [英] How do I count the total number of lines of code I wrote in VB.NET?

查看:25
本文介绍了如何计算我在 VB.NET 中编写的代码总行数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用VB.NET写了一个应用程序,因为我是按行收费的,所以我想计算一下我写了多少行.我的代码有大约 100 个不同的 Visual Basic 文件.我如何计算所有的行数?

I wrote an application in VB.NET and since I charge by the line, I would like to calculate how many lines I wrote. I have about 100 different Visual Basic files with my code. How do I count all the lines?

推荐答案

您可以使用正则表达式搜索后面没有另一个换行符的换行符(不包括空行)

You could do a regex search for a line-break char that isn't followed by another linebreak (excluding blank lines)

或者有这个应用程序 http://cloc.sourceforge.net/(我没用过它,我刚刚找到它)

Alternatively there's this app http://cloc.sourceforge.net/ (I haven't used it, I just found it)

这篇关于如何计算我在 VB.NET 中编写的代码总行数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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