git
git log --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -
vscode
添加扩展 VS Code Counter
第二步 :重新启动VS code,再用快捷键ctrl+shift+p工作区选择VscodeCounter:Count lines in workspace后回车会出现y一份预览result.md文件
在.VSCodeCounter\2022-06-30_10-32-21路径下面