Lines Of Code
In Visual Studio '05 (Professional Edition (the Microsoft Academy version, if that makes a difference)) is there any way to make VS count the total lines of code done in a project, or is it required to use a 3rd party program for that?
[240 byte] By [
Homogenn] at [2007-11-20 11:26:48]

# 2 Re: Lines Of Code
As far as I know this is not supported by the IDE. Take a look at tip 6 here: Visual Studio Tips and Tricks (http://www.wndtabs.com/index.html)
Regards,
Laitinen
Site is down :(
Due to ongoing security issues with my CMS system, I was forced to temporarily replace the site content with this stripped down page. The rest of the content will be back sometime in 2008. I apologize for the inconvenience.
-Oz Solomon (osolo at wndtabs dot com)
# 3 Re: Lines Of Code
Well, you can do that if you have the .CS file somewhere in your computer. If you want to do that when you only have the EXE file maybe it's possible, either, but I don't know how.
System.IO;
...
int count = 0;
StreamReader sr = new StreamReader(@"C:/MyCode.cs");
while(sr.ReadLine()) count++;
sr.Close();
# 4 Re: Lines Of Code
Well, you can do that if you have the .CS file somewhere in your computer. If you want to do that when you only have the EXE file maybe it's possible, either, but I don't know how.
System.IO;
...
int count = 0;
StreamReader sr = new StreamReader(@"C:/MyCode.cs");
while(sr.ReadLine()) count++;
This was the way I was thinking of going, and just making it run through all the folders for CS files, and counting. But it would be pretty silly if VS already had it implemented.
I could also just go to the last line of each file and manually add it up, but again, a lot of work, for something not that important.
My main concern about it, would be that it might mess up my project files. I feel enough of them die as is. ;/