Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get total number of lines in an Android Studio project?

Does anyone know how to do this? Preferably xml and java together, but java alone also works. I need this specifically for Android Studio, not Eclipse.

like image 960
The Hungry Androider Avatar asked Sep 17 '14 18:09

The Hungry Androider


People also ask

How do I count the number of lines in an eclipse?

One possible way to count lines of code in Eclipse: using the Search / File... menu, select File Search tab, specify \n[\s]* for Containing text (this will not count empty lines), and tick Regular expression. wow, that's super genius.

Why does Android studio have lines?

That line historically represents the margin of A4 paper, which is useful only if you need to print the code. Old school says that you should keep your code inside that margin, to guarantee much portability.


1 Answers

Check out the Statistic plugin for Android Studio/IntelliJ - it will give you the info you need :)

All File Types

Java Files

Note: even though you can't see it in the screenshot, it does also list line counts for xml files.

like image 155
free3dom Avatar answered Oct 07 '22 19:10

free3dom