Possible Duplicate:
How do you count the lines of code in a Visual Studio solution?
I am looking for software or means to count lines of code in a VC6.0: c++ project: 1500 files: cpp, h,
My hunch is there are 2 to 5 million lines of code in this project. I need a means to verify this per file.
thx
If your code is on a Unix machine with access to the find and wc commands (or you have an installation of Cygwin on your Windows machine), you can use the following shell command:
find . -name \*.cpp -or -name \*.hpp -exec cat {} \; | wc -l
Adjust the wildcards to pick the files that you'd like to scan (the above example picks anything with the .cpp or .hpp extension). There are may be other ways using Visual Studio to do this.
If you absolutely must use a Visual Studio-based solution, look at this Stackoverflow question:
How do you count the lines of code in a Visual Studio solution?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With