tags:

views:

166

answers:

4

What is the easiest/simplest way of finding out the number of lines in your VB project?

+1  A: 

if you're in Visual Studio, look at the line number on the left. If you want the total for all your pages, open them up, look at all your numbers, add them.

Jason
A: 

There a ton of utilities out there that will count lines for you. They typically count total lines, comment lines, white space lines, and code lines. Just Google your particular language and you'll find plenty.

colithium
A: 

What would you wanna see? Logical lines of code, or number of physical lines? Strictly, lines of code does not count empty lines, comments, and generated code lines. There is no easy way to find out lines of code in VB. Maybe you find something here.

Ralph Rickenbach
+1  A: 
  • You might be interested to know how this can be a relevant metric: Wikipedia SLOC

  • On a linux/mac, to count lines in files matching a certain extension ('vbs'):

    find . -regex '.*.(vbs)' -print0 | xargs -0 cat | wc -l

  • Third party software, like VB Pure Lines of Code

stereointeractive.com