Windows环境下用cloc统计代码量

cloc一款开源代码统计工具,支持windows和Linux环境。能统计指定文件夹或文件夹中文件数files、空白行数blank、注释行数comment和代码行数code。今天介绍windows环境下的使用方法。

使用简单:

下载:

Releases · AlDanial/cloc (github.com)

GitHub - AlDanial/cloc: cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.
语法格式:cloc文件路径+空格+统计项目代码路径

cmd用管理员模式运行

Windows环境下用cloc统计代码量_第1张图片

统计后得出上述4个指标值:files、blank、comment、code

(软著申请时需要填写code)

 

你可能感兴趣的:(windows)