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
In actual search bidding, you will often encounte...
Many people like to drink a bottle of Coke when t...
China Telecom took the lead in announcing that it...
Well, I’ve been a bad product manager . Therefore...
In the past two years, the whole society has beco...
Startup companies have few resources, a shortage ...
Activity mActivity =new Activity() As an Android ...
Looking down on Shanghai from the sky, people can...
〔2021 Summer〕High School Biology Target A+ Lu Wei...
With the continuous development of the Internet, ...
Author Li Chuanfu August 26, 2024 is a memorable ...
one Speaking of Toutiao, I believe everyone is fa...
The topic of manufacturing has attracted particul...
[[129819]] This is a resume that is also a readab...