Link to home
Start Free TrialLog in
Avatar of GivenRandy
GivenRandy

asked on

Count Lines of Source

Is there an easy way to count the number of lines of source in VB.NET 2005? Just the standard files (not the additional ones shown when selecting "Show All Files").
Avatar of tsay
tsay

I don't think you can do this in visual studio. What you can do is copy the source, paste it in MS Word en count the lines using Tools - Word Count. Ofcourse Word will  paste sentences over multiple lines so the number won't be exact but it'll give you an idea...
HTH
SOLUTION
Avatar of Sancler
Sancler

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GivenRandy

ASKER

Sounds like the current way is easiest -- go to the bottom of the file and see what line number it says. :(
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can go to a command prompt and:

Type *.vb > myfile.txt

And then open myfile.txt in VS, go to the bottom, and get the total line count for that project/directory.
BTW, I love using CodeRush and RefactorPro.