Is there a way to count the number of lines of code in an eclipse project? I can see the total number of lines for each file, but I'd like to see how much is generated across the whole project.

link|improve this question

feedback

2 Answers

up vote 4 down vote accepted

Check out the Eclipse Metrics plugin.

alt text

Note the 'Lines of code' statements.

link|improve this answer
feedback

You need to use the JavaNCSS tool, see JavaNCSS - A Source Measurement Suite for Java

I can't find any working links to Eclipse plugins that incorporate this library, only stale broken links.

But you can run it:

Also see JCSC which includes NCSS.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.