在Eclipse中计数行数 [英] Counting Line Numbers in Eclipse

查看:115
本文介绍了在Eclipse中计数行数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse中有一个Java项目,每个包含10个软件包和〜10个类文件。有没有办法从Eclipse中确定整个项目的总代码行?我熟悉其他工具(例如Code Analyzer,wc等),但是我想知道是否有一种在Eclipse中执行此操作的方法(或者确认无法执行此操作)。

解决方案

这是一个很好的指标插件,显示代码行数量等等:



http://metrics.sourceforge.net/



它说它需要Eclipse 3.1,虽然我想象的是3.1 +



这是另一个在Ganymede测试的指标插件:



http://eclipse-metrics.sourceforge.net


I have a Java project in Eclipse with ~10 packages and ~10 class files per package. Is there a way to determine total lines of code for the whole project from within Eclipse? I am familiar with other tools (e.g., Code Analyzer, wc, etc.) but I want to know if there is a way to do this within Eclipse (or get confirmation that there is no way to do it).

解决方案

Here's a good metrics plugin that displays number of lines of code and much more:

http://metrics.sourceforge.net/

It says it requires Eclipse 3.1, although I imagine they mean 3.1+

Here's another metrics plugin that's been tested on Ganymede:

http://eclipse-metrics.sourceforge.net

这篇关于在Eclipse中计数行数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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