After we have finished writing a project, we may want to know how many lines of code there is in this project? Or do you want to know how many lines of code you have written today, and have you achieved the goal of setting a small number of lines every day?
There are requirements, and we can use the following method to implement statistics on the total number of code lines in the project:
Pycharm requires plugins: statistic
Plug-in official download address:Statistic - IntelliJ IDEs Plugin | Marketplace
Environment Requirements: This plugin requires Java1.8 environment variable support. Remember to install Java1.8 and deploy the JRE environment.
Implementation steps:


3. Enter the Plugins option, then click the settings icon in the upper right corner, then Install Plugins from Disk…, and then select the previously downloaded statistic plug-in in the correct path.

4. Click Apply in the lower right corner to find that the statistic is installed (if not found, you can try restarting Pycharm)

5. Select the project you want to count, then click the statistic below pycharm, select the py file, and you can view the total number of python code:

(If you need to view other types of files, just select the corresponding file type)
1. Download cloc Download the cloc tool, the download link ishttps://github.com/AlDanial/cloc/releases。 2. Environmental variables Put the downloaded file cloc-1.86.exe in a file (where you want to pu...
There are many source files and header files in a large project. How can I quickly count the total number of lines? ------solution-------------------- b*[^:b#/]+.*$ ^b*[^:b#/]+.*$ ctrl + shift + F&nbs...
background I have been busy with the RobotCup Open recently. Due to the complexity and redundancy of the previous strategy code, it can not be reused, and some weird problems often appear on the new F...
How to use IDEA to count the number of project code lines Software: IDEA 2021.3 IDEA plugin: Statistic Look for the Plugins option in the settings, then search for the Statistic plugin in the Marketpl...
Original link Sometimes we want to count the total number of lines of code in our project, to get some sense of accomplishment or as other pictures. Here is how to count the number of lines of code co...
Open the terminal, use the cd command to locate the directory where the project is located, and then call the following naming to count the number of lines and the total number of each source code fil...
VS counts the total number of lines of code for the entire project Vs how to quickly count the total number of lines of the project, as follows: Vs edit | find and replace | find in file Find options ...
Write a java class yourself and count the total number of lines of java code in a project. The core algorithm is the recursive search of subdirectories. Test run class...
step one: Open the terminal, use the cd command to locate the directory where the project is located, and then call the following naming to count the number of lines and total number of each source co...