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
Meizu PRO 6 is undoubtedly a controversial flagsh...
In recent years, the popularity and development o...
In fact, all videos released by Douyin will be re...
New Year, New Atmosphere, the Spring Festival of ...
I thought God didn't know. After stealing som...
Legend has it that there is a jade rabbit living ...
January 28, 2021 Tesla (NASDAQ: TSLA) released it...
The study of Tyrannosaurus Rex and its relatives ...
What was the first thing to do when launching a n...
On April 19, 2024, Zeekr 009 Guanghui was officia...
What falls from the sky? Bugs? Birds? Is that a r...
Did you think Xiaohongshu was a gathering place f...
1. What is the product? At the end of the day, th...
A year ago, when I first joined a unicorn company ...
Samsung launched its second foldable phone, the G...