贴吧快完成主要功能了,想统计一下代码量,找到这么一个插件

我 自己试用了一下,发现需要注意两个地方:1.必须在JAVA透视图下使用才能有效;2.必须为项目的选项下的Metrics选择启动Metrics才能统 计;3.这个插件原意是分析代码质量、复杂性的,在分析结果中包含了代码量统计。4.只统计java代码,不统计jsp文件。

最后,Metrics可以以图形化的形式显示包的依赖关系,很好玩,大家可以试试。

转载自:三亩地<猛击这里打开>,谢谢作者

以下为原文**

Metrics插件可以从多个角度对Eclipse中的代码进行统计:

metrics

官方网站http://metrics.sourceforge.net/

添加方法:Run Eclipse, go to Help menu -> Software Updates -> Find and Install … On the opening dialog choose Search for new features to install. Add a new Remote site with the following url http://metrics.sourceforge.net/update and follow the instructions for installation.

使用方法:To start using the Metrics View, use Windows -> Show View -> Other and navigate to the Metrics View, as shown in the next image.


原文链接: Eclipse代码统计插件 | Log4D

3a1ff193cee606bd1e2ea554a16353ee

欢迎关注我的微信公众号:窥豹

窥豹