Count lines of code in all java classes in Android Studio

后端 未结 5 1981
夕颜
夕颜 2020-12-12 15:17

Is there any way I can view the total lines of code in each java class in my project?

Looking for something like this for Android Studio.

5条回答
  •  情深已故
    2020-12-12 15:56

    Goto the link https://plugins.jetbrains.com/plugin/4509-statistic and install it.

    General Usage Instructions

    1. Install plugin from official Jetbrains plugin site,

    2. After installing, just click on the TAB "Statistic" at the bottom of the screen (left side),

    3. Click "Refresh" button to run statistic for whole project,

    4. Click "Refresh on selection" button to run statistic for selected directory,

    5. Click "Settings" button to customize plugin behavior,

      • Adjust "Excluded file types" with all extensions which you want to remove from the statistic (e.g. class;jar;...),

      • Adjust "Seperate TABs file types" with all extensions which you want to have in separate tab (e.g. php;java;...),

    Note:

    1. Size - total size of the file,

    2. Size Min - size of the smallest file of the given type,

    3. Size Max - size of the biggest file of the given type,

    4. Size Avg - average size of the file of the given type.

提交回复
热议问题