Intellij idea uses Statistic to count the number of lines of code

1. Install Statistic

1. Open IDEA

2. Open settings to set

3. Select plugins, search for Statistic and install

4. After the download is complete, restart IDEA, and Statistic will be installed at this time

Two, use Statistic

1. After installing Statistic, we can display the console of the Statistic plug-in through the following steps

view -> Tool Windows -> Statistic

2. We can select the service we want to count to calculate the number of java code or configuration file lines

3. Problems encountered

In the process of using this plug-in, I believe that many people like me will encounter a console with the plug-in installed but without the Statistic plug-in. This is because the version of the Statistic plug-in specifies the version of IDEA.

Currently the latest version is 4.2.7, it only recognizes the 2021 version of the idea, and my idea version is 2018, so I chose the 2018 version of the plug-in.

[If your idea version is not the latest version], please refer to the following operations:

1. Enter the official website of statistic to download the plug-in jar package matching its own version

https://plugins.jetbrains.com/plugin/4509-statistic/versions

2. Open the idea setting interface and select local installation

3. Select the plugin jar package you downloaded, I use Statistic-3.4.1.jar

4. Click ok to restart

Guess you like

Origin blog.csdn.net/zzchances/article/details/129304110