Sign in
|
Join
Search
Jeff and .NET
The .NET musings of Jeff Putz
Home
Contact
About
RSS
Atom
Comments RSS
Recent Posts
When the Google beats on your SignalR
Everyone else is doing it (incorrectly)!
Lessons from live blogging with Azure (nothing bad happened)
Building for Web scale is a different skill
Building a live blog app in Windows Azure
Sponsors
advertise here
Tags
.NET
agile
AJAX
Apple
ASP.NET AJAX
Azure
Career
cloud
Community News
culture
General Software Development
Internet
Microsoft
Misc.
Mix
Mobile
MSDN
MVC
Off-Topic
open source
POP Forums
Silverlight
SQL Server
Surface
unit testing
video
Vista
Visual Studio
Web 2.0
Windows Phone
Windows RT
writing
Xbox 360
News
Navigation
Home
Blogs
My Sites
POP Forums
My Personal Blog
POP World Media
@jeffputz on Twitter
Archives
June 2013 (1)
May 2013 (3)
April 2013 (3)
March 2013 (1)
February 2013 (2)
December 2012 (1)
November 2012 (1)
October 2012 (2)
September 2012 (3)
August 2012 (3)
July 2012 (2)
June 2012 (4)
April 2012 (3)
March 2012 (2)
February 2012 (4)
January 2012 (4)
December 2011 (3)
November 2011 (1)
September 2011 (1)
August 2011 (1)
April 2011 (4)
March 2011 (5)
January 2011 (2)
December 2010 (2)
November 2010 (1)
October 2010 (1)
September 2010 (2)
August 2010 (4)
July 2010 (2)
June 2010 (2)
May 2010 (1)
April 2010 (1)
March 2010 (1)
February 2010 (2)
January 2010 (3)
December 2009 (2)
November 2009 (1)
October 2009 (5)
September 2009 (2)
August 2009 (10)
July 2009 (6)
June 2009 (7)
May 2009 (6)
April 2009 (6)
March 2009 (9)
February 2009 (3)
January 2009 (8)
December 2008 (4)
November 2008 (6)
October 2008 (5)
September 2008 (9)
August 2008 (3)
July 2008 (6)
June 2008 (8)
May 2008 (8)
April 2008 (3)
March 2008 (15)
February 2008 (4)
January 2008 (6)
December 2007 (7)
November 2007 (5)
October 2007 (5)
September 2007 (4)
August 2007 (6)
July 2007 (4)
June 2007 (6)
May 2007 (6)
April 2007 (2)
March 2007 (7)
February 2007 (12)
January 2007 (9)
December 2006 (6)
November 2006 (8)
October 2006 (11)
September 2006 (9)
August 2006 (22)
July 2006 (13)
June 2006 (4)
May 2006 (6)
April 2006 (8)
March 2006 (10)
February 2006 (22)
January 2006 (6)
December 2005 (3)
November 2005 (10)
October 2005 (6)
September 2005 (16)
August 2005 (19)
July 2005 (23)
June 2005 (12)
May 2005 (6)
April 2005 (16)
March 2005 (41)
February 2005 (20)
January 2005 (24)
December 2004 (35)
November 2004 (20)
October 2004 (24)
September 2004 (19)
August 2004 (38)
July 2004 (31)
June 2004 (29)
May 2004 (21)
April 2004 (21)
March 2004 (20)
February 2004 (15)
Is there a way to count lines of code in a project?
Does VS 2005 have some way to count the lines of code in a project? It's not any kind of vital statistic to me as much as I'm just curious.
Posted:
Nov 10 2005, 01:21 PM
by
Jeff
| with
8 comment(s)
Filed under:
.NET
,
Misc.
Comments
Kyle
said:
I haven't tried this out, but here's a "Macro to count lines of code in .cs files" from GotDotNet...
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=fb625d28-2c99-4066-a158-4b9cfe5ced98
#
November 10, 2005 1:57 PM
Kyle
said:
Sorry for the double post, but here's probably a better way...
http://www.codeproject.com/macro/linecount.asp
#
November 10, 2005 2:01 PM
Kyle Finley
said:
I have wanted the same feature and a while back I just wrote a little vbscript that will count the lines in various files.
http://kylefinley.net/archive/2005/10/03/18.aspx
This could easily be modified to be a macro. I only wanted it for curiosity sake on an old project.
#
November 10, 2005 2:28 PM
Erik Porter
said:
If there's nothing that does what you want, you may want to put it up on Product Feedback as a suggestion too. I'd vote for it if you did. I've wanted something similar for a long, long time. Would be neat to see what percent of lines of code in my app I actually wrote myself and how much was generated code, etc
#
November 10, 2005 2:48 PM
Jon Galloway
said:
Check out the DPack addins -
There's a stats view that includes totals as well as breakdowns by comment and code lines (and support for copying to clipboard):
http://www.usysware.com/dpack/Stats.aspx
It's free, and the VS2005 RTM version has been released.
#
November 10, 2005 3:19 PM
Jon Galloway
said:
Oh, and the DPack main page:
http://www.usysware.com/DPack/Default.aspx
#
November 10, 2005 3:20 PM
Kenny
said:
You can always do a regular expression search. Just enter the character . (full stop) in the search box to find all non empty lines. The count shows up in the Find Results window.
#
November 10, 2005 3:26 PM
Johan Hultgren said:
I recommend Source Monitor from
http://www.campwoodsw.com/
.
#
November 11, 2005 10:11 AM
Leave a Comment
Title
(required)
Name
(required)
Your URL
(optional
)
Comments
(required)
Remember Me?