Is there a way to count the lines of code in a whole project?

I've searched plugins and PhpStorm's features but I couldn't find anything.

Is there a way to see how many lines of code I wrote a day?

Sometimes I remove large blocks of code, so it'd be great to be able to measure the changes in the project.

Comment actions Permalink

Please see comments in Seems both available plugins only work in Intellij IDEA:(

You can search to existing tools on web, like

Comment actions Permalink

I know this is an old question, but if you are running Linux you open the terminal at the bottom of PhpStorm and type:

find . -name '*.php' | xargs wc -l

It will output your total lines of code in each file and total overall for you.

Comment actions Permalink

Thanks Kyle,
I just replaced pattern with *.py for my python files.

Elegant solution!

Comment actions Permalink

Just installed plugin in my EAP PHP Storm and it works well.


PhpStorm 2019.3 EAP
Build #PS-193.4697.24, built on October 17, 2019


Please sign in to leave a comment.