Archived

This topic is now archived and is closed to further replies.

Fresh

KLOCs

Recommended Posts

How do you measure them in visual studio :?) Sorry for the newbie question, but I never figured this one out... "The mere thought hadn''t even begun to speculate about the slightest possibility of traversing the eternal wasteland that is my mind..."

Share this post


Link to post
Share on other sites
As far as I know there''s no built in way to measure lines of code in VC, but I know there are some addons for it that''ll do it for you.

Share this post


Link to post
Share on other sites
Near the lower right, on the status bar, shows the current line and column. You can use this as a crude way to determine # of lines. Just go to the last line of your source file and note the number, although if you want to know the sum of the lines of code in several source files you''d have to add them all up manually.

Share this post


Link to post
Share on other sites
Do a seach over the whole project, for the semi-colon!

It''s crude but effective. Most lines of code have one.
Very few comments do.
Preprocessor d''s don''t.
Some items that might be considered a single line of code, will show more than one. e.g. for statement.

In general, the amount of semi-colons it finds is a preety good estimate.

Share this post


Link to post
Share on other sites