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.
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.
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.
Check out the Statistic plugin for Android Studio/IntelliJ - it will give you the info you need :)
Note: even though you can't see it in the screenshot, it does also list line counts for xml files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With