Code Counter

Count all code and comment lines from all programming files and scripts in a directory using this command-line tool with support for HTML, CSS, SQL and others.

  • Code Counter
  • Version :1.1
  • License :GPL
  • OS :Windows All
  • Publisher :CopySense

Download Now

Code Counter Description

Code Counter is a small-sized and simple-to-use application that can count code and comment lines in source code. It offers support for BASIC (.bas, .bi, .vb format), C and C++ (.c, .cpp, .h) and web files (.html, .htm, .css, .php, .inc, .tpl, .js and .sql).

Accessible from a Command Prompt window

The tool can be accessed only from the command-line environment since it doesn’t come wrapped in a graphical interface. However, it has commands intuitive enough to be used even by those with little experience in CMD tools.

Doesn’t require installation

It’s not packed in a setup kit, so you can copy the downloaded files anywhere on your computer as well as store it on a removable storage device to directly run Code Counter on any machine without installation, in order to analyze files. The source code is also available.

Calculate all comment and code lines

To use this app, open a Command Prompt window, go to its directory and type the file name. The syntax is codecounter -b | -c | -w, where -b tells the tool to analyze .bas, .bi and .vb files, -c is responsible for .c, .cpp and .h, while -w instructs the program to examine only .html, .htm, .css, .php, .inc, .tpl, .js and .sql files.

Place the files in the same location as the tool

Before doing this, however, make sure to place the files you want to submit for analysis in the same directory as Code Counter. Unfortunately, there is no command implemented for examining any selected folder or individual files.

As far as the results are concerned, you can find out the number of comment and code lines for each supported file, as well as the total analyzed files, comment, code and non-blank files.

Cannot save analysis results to file

It would’ve been helpful if the developer integrated options for autosaving all these details to file or for doing this yourself by entering a command. On the other hand, you can select the text with your mouse and copy it to the Clipboard by pressing Enter.

Simple line counter of comments and code

To sum it up, Code Counter provides you with a simple method for counting all comment and code lines within source code. It worked smoothly on Windows 10 in our evaluation and had low impact on the computer’s performance.

Leave a Reply

Your email address will not be published.