How to count lines of code in IntelliJ IDEA?
There are several ways we can count lines of code in IntelliJ IDEA. One of the most common methods is to use the Statistic plugin.
In this article, I will show you how to count lines of code using the Statistic plugin.
First, we need to install it from Intellij IDEA:
- Open IntelliJ IDEA editor;
- Select File > Settings, Open Settings Popup Window;
- Select Plugins, then type “Statistic” to search plugins;
- Click on the Statistic install button;
- Click on the Apply button and close the Settings Popup Window;
- You will see the Statistic toolbar via tabs in bottom left of project.
Once the installation is complete, you can see the Refresh option. Click on this option and it will reload and refresh all the files in the project and calculate the statistics. As shown below, you can see the number of lines of code for each language in the current project and the total number of lines is on the last line.
For more information of Statistic plugin, please refer to the following site (https://plugins.jetbrains.com/plugin/4509-statistic)
(END)
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.