Use the LOC plug-in of vscode to count the number of lines of code

Install the LOC plugin in vscode

Installed, press Ctrl+Shift+p, and then enter the command LineCounton it

Insert picture description here
Insert picture description here

At this time, an out folder will be generated under your project. There are two files under the folder, which record the number of lines of your code and other related details.

Insert picture description here
The above operation is based on statistical default settings, you can also vscode the setting.jsonfile, add its configuration information, detailed configuration, refer ** LOCdocumentation ** plug-in.

Guess you like

Origin blog.csdn.net/ddx2019/article/details/108527113