在Visual Studio中计算代码行 [英] Count line of Code in visual Studio
本文介绍了在Visual Studio中计算代码行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何计算Visual Studio解决方案中的代码行数?
解决方案
为什么不只看屏幕呢?
如果使用CTRL + END转到文件的最后一行,则会在状态栏上显示行号...
或按CTRL-G,转到行"框将显示有多少行...
请参考此CodeProject文章中提供的Visual Studio插件
行计数器-编写Visual Studio 2005& 2008加载项 [ 希望这就是你想知道的...?
How do you count the lines of code in a Visual Studio solution?
is there any scripts or code for that?
解决方案
Why not just look at the screen?
If you go to the last line in the file with CTRL+END it shows you the line number on the status bar...
Or press CTRL-G and the "Go to line" box shows you how many lines there are...
Please refer the Visual Studio addin given in this CodeProject article
Line Counter - Writing a Visual Studio 2005 & 2008 Add-In[^]
As shown in the article this addin counts the Code lines, Comment lines, Total lines etc for each file and also project wise.
I think it may be helpful to you.
did you mean that how can we view the line no. in VS ??
then goto tools-->options-->click on the TextEditor then on All Languages, check the text boxes below display heading.
hope this was what you wanted to know...?
这篇关于在Visual Studio中计算代码行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文