Chandam
Chandam

Reputation: 653

Lines of code in your VB project

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

Upvotes: 0

Views: 1625

Answers (4)

Ralph M. Rickenbach
Ralph M. Rickenbach

Reputation: 13163

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.

Upvotes: 0

stereoscott
stereoscott

Reputation: 13436

  • 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

Upvotes: 1

colithium
colithium

Reputation: 10327

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.

Upvotes: 0

Jason
Jason

Reputation: 52523

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.

Upvotes: 0

Related Questions