查看代码行数
项目写久了,就像看看自己一个项目的真实代码有多少行,所以找了下面两个方法
命令行查看
用mac终端自带的的find命令,可以查看目录下每个文件的行数,及最后输出总行数
1 | # input > |
VsCode查看
直接在vscode的全局搜索中(快捷键为Command + Shift + c),输入b*[^:b#/]+.*$
,并使用Use Regular Expression
选项(即最右侧的星号和方块的按钮),进行搜索,即可查看
1 | # input > |
祝君无Bug~
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.