最好的办法是使用VS中的ANALYZE菜单中Calculate Code Metrics for solution  ,会出现Code Metrics Results,里面统计了有效代码行数。 

 

 另一种方法:查找法

按下:Ctrl+Shift+F

在Find in Files中

Find what:中输入

b*[^:b#/]+.*$   

^b*[^:b#/]+.*$(去掉#、/或空行)

Look in:无需填

Find options中勾选

Use Regular Expressions

Look at these file types:中选择要统计代码的文件类型

点击Find All在Find Results1中最后有代码的总行数统计。

相关文章:

  • 2021-12-19
  • 2021-12-28
  • 2022-12-23
  • 2021-11-30
  • 2021-11-25
  • 2022-01-09
猜你喜欢
  • 2021-06-04
  • 2021-08-29
  • 2022-12-23
  • 2021-10-31
  • 2022-01-19
  • 2022-02-19
相关资源
相似解决方案