[英]how to get all ts file code line count with using tslint?
Is it possible to get all .ts file code line count with using tslint?
是否可以使用tslint获得所有.ts文件的代码行数? I can't get any details from any
tslint
documents.我无法从任何
tslint
文档中获取任何详细信息。 Kindly let me know if you have any other options.如果您还有其他选择,请告诉我。
If you are using vscode
, you can instll this plugin line-counter
from the market place. 如果您使用的是
vscode
,则可以从市场上安装此插件line-counter
。
which will have, 将会有,
Count current file
Count workspace
probably you can use the 2nd option 也许你可以使用第二个选项
For sublime text you can use the following: 对于崇高的文字,您可以使用以下内容:
Step 1: Turn on regex search after pressing Ctrl + Shift + F ( global search ) 第1步:在按Ctrl + Shift + F(全局搜索)后打开正则表达式搜索
Step 2: Paste the following in find: ^(.*)$ 步骤2:将以下内容粘贴到find中:^(。*)$
Step 3: In your Where section use the folder in which you write all your ts code eg: src/**/*.ts 步骤3:在“ Where”部分中,使用其中写入所有ts代码的文件夹,例如:src / ** / *。ts
Press Find and the total number of lines will be given to you eg: 10220 matches across 150 files 按查找,将向您提供总行数,例如:150个文件中有10220个匹配项
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.