Sometimes we want to count the total number of lines of code in our project to gain a sense of accomplishment or for other purposes. Here are some easy ways to count the number of lines of code. It is very simple. The method is as follows:
1. Open the terminal; 2. Use the cd command to reach our project file. Note that if we want to avoid counting the amount of code in the referenced third-party library, we need to go further into the code file we wrote ourselves, which is usually a file with the same name as the project file; 3. Count the number of code lines: If you want to list the number of lines in each file, enter the command:
If you want to list the total number of code lines directly, enter the command:
In this way, you can get the quantity directly, and it is very fast. Isn’t it convenient? This counting process will remove blank lines, but comments will be counted. |
>>: Some experiences and summaries of hybrid APP cross-platform development in 2017-2018
We have compiled a list of common bidding problem...
When renting a server, many companies are still c...
With the arrival of winter vacation and Spring Fe...
□ Right to speak Recently, the Tarim Oilfield Pho...
Yesterday I answered a question on Zhihu: "W...
This article was reviewed by Pa Li Ze, chief phys...
last night Beijing Winter Paralympics opens grand...
This article was reviewed by: Pa Lizhe, chief phy...
Last year, my colleague treated a couple who were...
This case is a review of an online event planned ...
In the past few days, I have looked at no less th...
Nowadays, e-commerce platforms led by Tmall are n...
On the land of China Among thousands of rivers Ch...
Famous Artists Gallery | Grice, a Russian painter...
Produced by: Science Popularization China Author:...