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.

4 comments
Comment actions Permalink

Please see comments in https://youtrack.jetbrains.com/issue/IDEABKL-6808. Seems both available plugins only work in Intellij IDEA:(

You can search to existing tools on web, like http://www.locmetrics.com/alternatives.html

0
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.

12
Comment actions Permalink

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

Elegant solution!

2
Comment actions Permalink

Just installed https://plugins.jetbrains.com/plugin/4509-statistic plugin in my EAP PHP Storm and it works well.

Version:

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

0

Please sign in to leave a comment.