如何计算“Java 项目”中的行数

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4062209/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 04:37:39  来源:igfitidea点击:

How to calculate the number of lines in a "Java Project"

javanetbeansline-count

提问by iberck

How can I calculate the number of lines in a "Java Project"?
I'm using Netbeans 6.9.

如何计算“Java 项目”中的行数?
我正在使用 Netbeans 6.9。

回答by aioobe

Have a look at the NetBeans Metrics Module.

查看NetBeans 指标模块

NetBeans Metric Module is a module for NetBeans that can measure your java source code and display the results in NetBeans.

NetBeans Metric Module 是 NetBeans 的一个模块,可以测量您的 java 源代码并在 NetBeans 中显示结果。



Or the wordcount plugin.

或者wordcount 插件

Counts characters, words, and lines of java files

统计java文件的字符、单词和行数

回答by Antoine Pelisse

Sloccount is a very good application to count number of lines of code.

Sloccount 是一个非常好的计算代码行数的应用程序。

You can find more information here: Sloccount

您可以在此处找到更多信息: Sloccount