开发者

Easiest way to know LOC on Eclipse

I am working on a project using Eclipse 3.4.2, and would like to know how many Non Comment Lines of Code (NCLOC) it has.

It is OK to be a simple plugin, but 开发者_如何学JAVAI don't wan too much bloat. My machine is already slow the way it is.


Use Eclipse regular Expression: Search->File, check Regular expression.

  • LOC: \n[\s]* (without blanks)

  • Comments: [*]+

you can subtract to get NCLOC with selected resource


You could try a metric plugin (like the ones I mention in this SO question)

That, plus a good eclipse.ini (making your eclipse run with the latest JDK), should make your configuration able to display what you want in a timely fashion.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜