63 thumbs up

Ordinary People Discovering Extraordinary Abilities

Not So Smart Builder

Source lines counter

Does anyone know a good source lines counter utility? I need one for different languages that can be customized.


  • 1242 views
Share Send to a friend Watch Report
 

Best Answer

 
30 thumbs up

Did you take a look at this one: http://www.geronesoft.com/ ?

 


Posted 2 years ago ( permalink )
In reply to dudushmaya's question
Rated as
Best Answer
0
4

Helpful?

line
line
line


 

All Answers

Order by
 
518 thumbs up

They're coming to take me away, Ha-haaa!

Advanced .NET Debugging Blog

My personal blog

I couldn't find anything that can do that for multiple langauges and still be customized enough.

What I did use for a while was Line Counter (lc.exe). You can download it here. Its a nice command line tool and support C/C++ and C#.

I also saw a project in codeproject written in C# that counts C# lines which you can get its source, so this just might be a good basis to write something of your own and fully customize it. You can see the project here.

Hope this helps. 


Posted 2 years ago ( permalink )
In reply to dudushmaya's question
Rated as
#4 out of 5
0
1

Helpful?

line
line
line



 

Or, if you have Cygwin installed, you can use the old 'wc' utility. Combined with 'find', it can produce great results.

Example:

find -name "*.cs" | xargs wc

or

find -name "*.java" -exec wc {} \;


Posted 2 years ago ( permalink )
In reply to dudushmaya's question
Rated as
Best Answer
0
4

Helpful?

line
line
line



 
2 thumbs up

you can use the excellent freeware add-in for visual studio "DPack"

 

http://www.usysware.com/dpack/


Posted 2 years ago ( permalink )
In reply to dudushmaya's question
Rated as
#3 out of 5
0
2

Helpful?

line
line
line



 

I have a post on my blog http://weblogs.asp.net/israelio/archive/2005/03/02/383867.aspx talking about various code metrics tools, one of them is Source Monitor Version 2.0.4.7 which can combine lots of metrics amoung lines count, comments etc of vaious languages.

I used it in the past to gather matric for a system build from c++,Java,C#,vb & delphi and its worked great !

Ohad Israeli
Experts4D
Microsoft Security MVP
http://weblogs.asp.net/israelio


Posted 2 years ago ( permalink )
In reply to dudushmaya's question
Rated as
#5 out of 5
0
0

Helpful?

line
line
line



Sign in to participate

Got an answer for dudushmaya? Would you like to comment on the posted answers, or vote for the one which you think is the best?

Sign up for a free account, or sign in (if you're already a member).

Explore Related Questions

Other people asked questions on similar topics, check out the answers they received:


Hi, Do you have a sample C# code to use google or ...

Hi, Do you have a sample C# code to use google or yahoo id to signup/login to the website? please reply me at prasadvemala@gmail ...
Submitted by prasad 29 days ago
  • viewed 30 times

Last answer posted 15 days ago by prasad


Anyone familiar with MS CAB

Anyone familiar with MS CAB (Composite UI Application Block)? It looks quite interesting and I wonder if anyone tried it on a real ...
Submitted by Eyal123 2 years ago
  • viewed 657 times

Last answer posted 2 years ago by Ohad.Israeli


Query domain for list of computers that are listening to a specific port in c#

How can I get list of computers in a domain that are listening to a specific port (in c#)?
Submitted by dudushmaya 2 years ago
  • viewed 1155 times

Last answer posted 2 years ago by