Counting Lines of Code
-
The funny thing is that I searched on MSDN Code Gallery and found none. I guess that's because Microsoft struggle at making their search engine work. Anyway, it only works for VS05...
Pete O'Hanlon wrote:
I've never thought that counting LOC has any relevance
It depends. It is a quick metric that let you know when your code is becoming too big for the team (or yourself).
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki
Dario Solera wrote:
Anyway, it only works for VS05...
Not quite true - you can run it outside of Visual Studio (it runs in standalone mode as well).
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
Dario Solera wrote:
Anyway, it only works for VS05...
Not quite true - you can run it outside of Visual Studio (it runs in standalone mode as well).
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
Yes, I've seen that, but it feels way too complex for my needs. I mean, when PLC worked I just had to click a button and get the results.
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki
-
Do you know of any add-in for Visual Studio 2008 (excluding this one[^]) that allows to count lines of code in your solution and projects? I used to use PLC (linked above) but I can't manage to install it for VS08 because it requires registry tweaking (I succeeded on another machine, but on my current PC). Any idea?
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki
Do something that will cause an exception. That will count the lines passed through (including iterated lines) to that point. :D
I wanna be a eunuchs developer! Pass me a bread knife!
-
Thanks, unfortunately I strictly need one that is able to process only files in the solution (I have .cs files that contain data and not code).
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki
-
Do you know of any add-in for Visual Studio 2008 (excluding this one[^]) that allows to count lines of code in your solution and projects? I used to use PLC (linked above) but I can't manage to install it for VS08 because it requires registry tweaking (I succeeded on another machine, but on my current PC). Any idea?
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki
-
Yes, I've seen that, but it feels way too complex for my needs. I mean, when PLC worked I just had to click a button and get the results.
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki
It’s not so complicated and what I like is that it excludes the comments and blanks from the result, so you get the real picture. What’s bugging me with this tool is that you need to select manually every source file from the check list box and if the files are thousands…
The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word. Advertise here – minimum three posts per day are guaranteed.
-
Do you know of any add-in for Visual Studio 2008 (excluding this one[^]) that allows to count lines of code in your solution and projects? I used to use PLC (linked above) but I can't manage to install it for VS08 because it requires registry tweaking (I succeeded on another machine, but on my current PC). Any idea?
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki
How something as basic as counting lines would require registry tweaking is beyond me. No help other than suggesting
grep ";" *.[ch] | wc
. :-O -
How something as basic as counting lines would require registry tweaking is beyond me. No help other than suggesting
grep ";" *.[ch] | wc
. :-ORobert Surtees wrote:
How something as basic as counting lines would require registry tweaking is beyond me.
The VS add-in I used to use (linked in my original post) was built for VS05 and never updated for VS08. You could get it working in VS08 with some registry tweaking, but for some reason I'm no more able to make it work on my new PC.
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki
-
Robert Surtees wrote:
How something as basic as counting lines would require registry tweaking is beyond me.
The VS add-in I used to use (linked in my original post) was built for VS05 and never updated for VS08. You could get it working in VS08 with some registry tweaking, but for some reason I'm no more able to make it work on my new PC.
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki
You'll have to forgive my ranting. I'm one of them luddites that still uses a simple text editor and the command line for development.
-
You'll have to forgive my ranting. I'm one of them luddites that still uses a simple text editor and the command line for development.
:omg: Really?
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki
-
:omg: Really?
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki
Really. I kinda like it. Can't think of a single crash or problem my development environment has given me in the last 30 years. This year I'm upgrading to gcc from my Watcom compiler. Should be exciting.
-
Do you know of any add-in for Visual Studio 2008 (excluding this one[^]) that allows to count lines of code in your solution and projects? I used to use PLC (linked above) but I can't manage to install it for VS08 because it requires registry tweaking (I succeeded on another machine, but on my current PC). Any idea?
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki
-
You'll have to forgive my ranting. I'm one of them luddites that still uses a simple text editor and the command line for development.
Preach it, man! VS is for designing Forms; I don't do much of that.
-
Do you know of any add-in for Visual Studio 2008 (excluding this one[^]) that allows to count lines of code in your solution and projects? I used to use PLC (linked above) but I can't manage to install it for VS08 because it requires registry tweaking (I succeeded on another machine, but on my current PC). Any idea?
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki
First, define a "line of code" . Counting statements might make sense, but then you still need to define a statement . You should be able to remove all the linfeeds from a C-family program without affecting it ( unfortunately, precompiler directives break that :mad: ) .
-
Do you know of any add-in for Visual Studio 2008 (excluding this one[^]) that allows to count lines of code in your solution and projects? I used to use PLC (linked above) but I can't manage to install it for VS08 because it requires registry tweaking (I succeeded on another machine, but on my current PC). Any idea?
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki
-
Visual SlickEdit Gadgets has a SLOC Report as one of the gadgets. I have it working in VS2008. See: http://www.slickedit.com/content/view/441/#SLOCReport[^]
Thanks for the links, seems promising!
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki