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
User operations in e-commerce involve many points...
WeChat officially announced on August 20 that WeC...
Why do brands and marketing companies pay so much...
If you ask people what their favorite animal is, ...
New energy is a hotly discussed topic nowadays, a...
1. Overall Logic There is only one logic in runni...
In 2016, while the overall structure of the globa...
The latest research results from the University o...
Kabosu passed away peacefully at 7:50 am on May 2...
Making money is a basic need, not a question of w...
Original title: 70th anniversary of the discovery...
There are only a few months left before the offic...
Yesterday, a piece of news about Xiaomi and Media...
In this case, the fission mechanism of inviting f...
Hello everyone, I am Xiaoxiao who is challenging ...