Count lines of code in all Java classes in Android Studio

Is there a way to view common lines of code in every java class in my project?

Looking for something like this for Android Studio.

+92
android android-studio
Aug 26 '14 at 15:57
source share
3 answers

Go to https://plugins.jetbrains.com/idea/plugin/4509-statistic and install the latest version

to install

  • Launch Android Studio

  • In the menu bar, select "File" β†’ "Settings"

  • In the "IDE Settings" section, select "Plugins" and then "Install Plugin from Disk"

  • Go to the folder where you downloaded the plugin and double click on it.

  • Restart Android Studio

To count the lines

  • Check the statistics option that appears after installing the plugin
  • This option is next to the console run, debug, gradle, bottom left corner of Android studio

05/21/2015

If you do not see statistics options, follow these steps:

  • Select VIEW in the toolbar.

  • Select TOOLS Windows.

  • Select STATISTICS.

You will see the statistics of your project, and at the bottom - the TOTAL section, which displays the complete lines under the LINES column.

+221
Apr 28 '15 at 2:37
source share

You can try this plugin (it is designed for IntelliJ, but should work with AS): http://plugins.jetbrains.com/plugin/?idea&id=4509

+17
Aug 26 '14 at 16:05
source share

The Jetbrain statistics plugin only considers .java files. This is not true for getting a line of code for an Android application.

For this we can use locmatrics.

http://www.locmetrics.com/

This will return loc for all extensions entered.

When checking, set a valid output directory. Otherwise, garbage files will be generated inside the source directory.

+2
Feb 17 '16 at 6:27
source share



All Articles