count lines of code for entire project
Mostra commenti meno recenti
Hi All,
I am looking into counting source code of lines for entire project. Is there a way to do it? I looked into sloc() somebdy posted but it counts only one file at a time. I want to count for the entire project so soemthign can go into the foler and look for each and every .m file
Risposta accettata
Più risposte (2)
Demetrio Rodriguez Tereshkin
il 14 Apr 2016
1 voto
This is what you are looking for: https://github.com/AlDanial/cloc
Preetham Manjunatha
il 25 Nov 2025
Modificato: Preetham Manjunatha
il 25 Nov 2025
0 voti
Here is a lightweight MATLAB utility that recursively counts code, comment, and blank lines across files or directories and writes a per-file summary and grand totals to lineCount.txt: Count Lines.
Categorie
Scopri di più su File Operations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!