且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

计算Android Studio中所有java类中的代码行数

更新时间:2023-01-02 16:35:15

转到https://plugins.jetbrains.com/idea/plugin/4509-statistic并安装最新版本

安装

  1. 运行 Android Studio

  1. Run Android Studio

从菜单栏中,选择文件-->设置

From the menu bar, select File-->Settings

在 IDE 设置下,单击插件,然后单击从磁盘安装插件

Under IDE Settings, click Plugins, and then click Install plugin from disk

导航到您下载插件的文件夹并双击它

Navigate to the folder where you downloaded the plugin and double-click it

重启 Android Studio

Restart Android Studio

计算行数

  1. 检查安装后可见的统计选项插件
  2. 这个选项在Android studio左下角run, debug, gradle控制台附近

21/05/2015

如果您看不到统计选项,请执行以下操作:

If you cannot see the Statistics options, do the following:

  1. 从工具栏中选择查看.

  1. Select VIEW from the toolbar.

选择工具窗口.

选择统计信息.

你会看到你的项目的统计数据,在底部有一个 TOTAL 部分,在 LINES 的 Column 下显示总行数.

You will see the statistics of your project and at the bottom, there is TOTAL section which displays the total lines under the Column of LINES.