【工具使用】代码行数统计的方法汇总

一,简介

我们在实现代码的过程中,有时会需要统计代码行数,本文介绍几种常用的统计代码行数的方法,供参考(持续更新)。

二,统计方法介绍

2.1 使用power shell命令行

安装power shell工具后,启动power shell,进入到需要统计行数的文件目录输入以下指令即可:

(Get-ChildItem -Recurse -File | Get-Content | Measure-Object).Count

三,总结

本文介绍了统计代码行数的方法,持续更新中。

猜你喜欢

转载自blog.csdn.net/xuxu_123_/article/details/133903293