Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Project Line Counter Add-In v2.10 for VS.NET and VC6

, 29 Jun 2003
Get statistics about your source code with a click of a button
linecount_dll.zip
linecount_src.zip
Help
arrowrt.gif
Index.hhk
LineCount.chm
LineCount.hhp
mailto.gif
metl011.gif
PLC.gif
small_exclamation.gif
TOC.hhc
weblink.gif
res
idr_main.ico
project.ico
TBarLrge.bmp
TBarMedm.bmp
title.ico
ExtrnSrc
Release
LineCount.dll
WWhizInterface.mod
LineCount.chm
plc110src.zip
plc111.zip
plc111src.zip
Source
LineCount.dsw
LineCount_VC5.dsw
LineCount.dsp
LineCount_VC5.dsp
LineCount.odl
LineCount.def
Help
.cvsignore
Index.hhk
LineCount.hhp
PLC.gif
TOC.hhc
arrowrt.gif
mailto.gif
metl011.gif
small_exclamation.gif
weblink.gif
res
TBarLrge.bmp
TBarMedm.bmp
idr_main.ico
project.ico
title.ico
ExtrnSrc
Debug
WWhizInterface2D.mod
plc150.zip
Reports
SampleAnalysis.xls
Simple-BW.xsl
Simple-Color.xsl
plc150src.zip
SampleAnalysis.xls
Simple-BW.xsl
Simple-Color.xsl
LineCount.dsw
LineCount.dsp
LineCount.odl
LineCount.def
LineCount.clw
.cvsignore
TOC.hhc
linecount.hhp
arrowrt.gif
Index.hhk
PLC.gif
mailto.gif
small_exclamation.gif
weblink.gif
info_dot_small.gif
TBarLrge.bmp
idr_main.ico
project.ico
HdrDownA.bmp
HdrUpA.bmp
title.ico
info.ico
TBarMedm.bmp
WWhizInterface2D.mod
plc200.zip
plc200src.zip
.cvsignore
LineCount.def
LineCount.dsp
LineCount.dsw
LineCount.odl
ResizableLib
.cvsignore
ResizableLib.dsp
ResizableLib.dsw
.cvsignore
Index.hhk
LineCount.hhp
PLC.gif
TOC.hhc
arrowrt.gif
info_dot_small.gif
mailto.gif
small_exclamation.gif
weblink.gif
ObjModelVC6
ObjModelVC7
MSADDNDR.tlh
MSO.tlh
dte.tlh
HdrDownA.bmp
HdrUpA.bmp
LineCountVC6.rgs
LineCountVC7.rgs
TBarLrge.bmp
TBarMedm.bmp
idr_main.ico
info.ico
lcgo.bmp
project.ico
title.ico
WWhizInterface2D.mod
plc210.zip
plc210src.zip
.cvsignore
LineCount.def
LineCount.dsp
LineCount.dsw
LineCount.odl
.cvsignore
ResizableLib.dsp
ResizableLib.dsw
.cvsignore
Index.hhk
LineCount.hhp
PLC.gif
TOC.hhc
arrowrt.gif
info_dot_small.gif
mailto.gif
small_exclamation.gif
weblink.gif
MSADDNDR.tlh
MSO.tlh
dte.tlh
HdrDownA.bmp
HdrUpA.bmp
LineCountVC6.rgs
LineCountVC7.rgs
TBarLrge.bmp
TBarMedm.bmp
gallery.xsl
idr_main.ico
info.ico
lcgo.bmp
project.ico
title.ico
WWhizInterface2D.mod
.Topic IDOK
Dismisses the dialog.

.Topic IDHELP
Click this button to access the online help.

.Topic IDC_ABOUT
Click this button to display program information and copyright.

.Topic IDC_GO
Click here to start counting!

.Topic IDC_OPTIONS
Click this button to activate the options dialog.

.Topic IDC_RESULTLIST
This list shows the statistics collected for each file.


* You can sort the list by clicking on the column headers.  

* Use two clicks to flip a column's sort order.

* Ctrl + Click to sort based on multiple columns.

* Drag the column headers in order to switch column positions.

.Topic IDC_FILECOUNT
The number of files in your project that were counted.  These are the files 
in your project that had the extensions specified in the options dialog.

lines in your files.

.Topic IDC_FILE_LIST
Line Counter ignores any file/path that matches a rule specified in this list.


Click on the 'Help' button below for a detailed explanation of
processing rules.

.Topic IDC_DELETEFILE
Click this button to delete the active selection.

.TOPIC IDC_INSERTFILE
Click this button to insert a new list item.

.TOPIC IDC_CLEARALLFILES
Click this button to remove all the file processing rules.

.Topic IDC_EXT_LIST
Line Counter counts only files that have one of the extensions on this list.

You can delete an extension by highlighting a list item and pressing the

'Delete' key.  Add an extension by pressing 'Insert'.

.Topic IDC_RESET
Pressing this button resets the list to the 

following default extension values:


 .cpp, .c, .cxx, .rc, .def, .r, .odl, .idl, 

 .hpj, .hhp, .bat, .h, .hpp, .hxx, .hm, .inl

.Topic IDC_UNDO
Click this button to undo/redo the last operation.

.Topic IDC_DELETEEXT
Click this button to delete the active selection.

.TOPIC IDC_INSERTEXT
Click this button to insert a new list item.

.Topic IDC_CHECKCOMMENTS
When enabled, source code lines with C/C++ style comments are counted

separately from the rest of the source code lines.  Mixed lines (lines

with both code and comments) are also counted separately.

.Topic IDC_COUNTBLANK
When enabled, blank lines are counted separately from other code lines.
With this option disabled, blank lines are counted as regular code lines.


Blank lines appearing inside /* */ style comments are always counted as 
comment lines.

.Topic IDC_TITLE
Project Line Counter Add-In

     by Oz Solomonovich

.Topic IDC_ACTIVEONLY
When selected, only the files of the active project are counted.


A DevStudio workspace can have more than one project.  The active

project is the one that DevStudio builds, and is indicated in bold.

.Topic IDC_EXPORT
Exports the results to a text report file.

.Topic IDC_FILESUMMARY
Displays a report of file distribution by extension.


.Topic IDC_LINEST
This column shows the global line count summary statistics.

.Topic IDC_CODET
This column shows the global lines-of-code statistics.


A line of code is any line that has code on it.  This includes lines that
have only code, and lines with both code and comments.

.Topic IDC_COMMENTST
This column shows the global comment line statistics, or "n/a" if

files comments statistics weren't collected (see the Preferences dialog).


A comment line is any line that has a comment on it.  This includes lines 

that have only comments, and lines with both code and comments.

.Topic IDC_MIXEDT
This column shows the global mixed-line statistics, 
or "n/a" if files weren't parsed for comments (see the Preferences dialog).


A mixed line is a line that has both code and comments.  The following is
always true:

\t  MIXED LINES = (CODE LINES + COMMENT LINES) - TOTAL LINES

.Topic IDC_BLANKT
This column shows the global statistics about blank code lines in your files,

or "n/a" if blank lines were counted separately (see the Preferences dialog).


A line is considered blank if it has only whitespace and it is not a 
comment line.

.Topic IDC_NETLINEST
This column shows the global statistics about "net lines", i.e.
the total amount of lines, minus the blank lines.

.Topic IDC_FILTER
Using the filter box you can select which files you wish to have counted.
You can choose to have the entire workspace counted, or just the active
project.  You can also choose any particular project from within the 
current workspace.

.Topic IDC_DEFAULT_FILTER
This option sets the default filter.  The default filter is used when
the filter selection in the main dialog becomes invalid (for instance,
if you select a specific project file and then switch to a different
workspace).

.Topic IDC_XSL_NONE
Indicates that a stylesheet tag should not be output in exported XML data 
files.

Use this option if you don't wish to view your XML data through a stylesheet,
or if you want to manually process the XML file through a stylesheet.

.Topic IDC_XSL_SAMENAME
Indicates that a stylesheet tag should be output in exported XML data 
files.  The name of the stylesheet is that of the exported file name, but
with an .xsl extension.  For example, if the exported file name is "foo.xml",
the following tag will be output:

<?xml-stylesheet type="text/xsl" href="foo.xsl"?>

.Topic IDC_XSL_SAMENAME
Indicates that a stylesheet tag should be output in exported XML data 
files.  The name of the stylesheet is that of the exported file name, but
with an .xsl extension.  For example, if the exported file name is "foo.xml",
the following tag will be output:

<?xml-stylesheet type="text/xsl" href="foo.xsl"?>

.Topic IDC_XSL_FIXED
Indicates that a stylesheet tag should be output in exported XML data 
files.  The name of the stylesheet should be specified in the edit box.
For example, if the edit box reads "c:\xsl\report.xsl", the following tag 
will be output:

<?xml-stylesheet type="text/xsl" href="c:\xsl\report.xsl"?>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Oz Solomon
Experion
Canada Canada
You may know Oz from his WndTabs days. Oz has long since left client side development to work on web technologies and to consult in the R&D management field.

| Advertise | Privacy | Mobile
Web03 | 2.8.140826.1 | Last Updated 30 Jun 2003
Article Copyright 2000 by Oz Solomon
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid