计算Android Studio中所有Java类中的代码行 [英] Count lines of code in all java classes in Android Studio

查看:186
本文介绍了计算Android Studio中所有Java类中的代码行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法可以查看项目中每个java类中的全部代码行吗?

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

正在为Android Studio寻找类似的内容.

Looking for something like this for Android Studio.

推荐答案

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

要安装

  1. 运行Android Studio

  1. Run Android Studio

从菜单栏中,选择File-> Settings

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的运行,调试,gradle控制台,位于左下角
  1. Check the statistics option that is visible after installing the plugin
  2. This option is near the run, debug, gradle console, bottom left corner of Android studio

2015年5月21日

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

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

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

  1. Select VIEW from the toolbar.

选择工具窗口".

选择统计信息.

您将看到项目的统计信息,底部是TOTAL部分,显示LINES列下的总行.

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.

这篇关于计算Android Studio中所有Java类中的代码行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆