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
Spring is the most beautiful season of the year, ...
Today, when I was browsing the website, I saw a p...
Recently, I have learned and practiced React, whi...
Short video sales have become a common sales meth...
On July 29, the sci-fi comedy "Alone on the ...
How much does it cost to attract investment in th...
During the National Day Golden Week, many men and...
Kunming tea tasting has its own studio. Recommend...
What kind of course is this? "The Road to Gr...
The author or source of this article or its origi...
[[155803]] Preface I saw an article saying "...
According to Automotive News Europe on June 4, Lo...
WeChat mini programs are business opportunities i...
The Two Sessions is a collective name for the Nat...
When you first came into contact with the Interne...