Thursday, August 25, 2011

Tibi's Line Counter v1.0

The following application has a very simple role: count how many lines of code you wrote.


Features:
You can add a folder or a file to the list using the 'drag and drop' method. When you added all folders/files, press Calculate. The program will do the hard work of counting all the lines, and summing those together. The folders are checked recursively.

One of the cool features is the file filter, which works for all the folders in the list. Filters will eliminate unwanted files (such as executables).

Using the file filter you can look for a specific file, for example:
source_code.c

Wildcards are also available:

source*.c
source?.c

Also, you can specify multiple filters, using comma(,) or vertical bar separator (|):
*.c|*.h
*.cpp,*.h

There are some predefined macros that you can use. Note that you cannot use multiple macros, if you try to, they will be considered file names.
All - all files
All known text - a huge list of plain text formats (includes all formats below)
Scripts - many script files, including makefiles, batch, shell, applescript, lua, php etc.
Source - a huge number of source code files, including ada, assembly, C/C++, C#, Java, pascal etc.
Text - ordinary text files
Web - most used web files, such as xml, html, php etc.


System requirements:
To run the application, you need to make sure you have installed .NET Framework 3.0.

Download link:
You can download here (.exe, 28kb, dropbox.com) or here (.zip, 13kb, dropbox.com).
The source code is also available for download here (.zip, 113kb, dropbox.com, VS2010 project)

Author:
(c) 2011 Chibici Tiberiu.

Other info:
You can write a comment on this post, for feature requests, or bugs.
Here is the full list of formats used by the macros for the interested.
Large projects (e.g. >1000 files, or >100 mb) may take longer to process. This is because the application has to read all the filtered files.

No comments:

Post a Comment