Search code examples
eclipsecommentscode-metrics

How to count comments?


I'm trying to count the total lines of code, and most importantly the lines of comments!

I am currently using eclipse, and I have tried metrics2 for eclipse but it only gives total lines of code, which ignores whitespace and comments.

Could anyone suggest how I can get this value please

Thanks


Solution

  • You can try cloc. It is simple to use and supports a bunch of languages.