Skip to content

Instantly share code, notes, and snippets.

@seb776
Created January 31, 2022 10:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seb776/0bf5208236e8a1ca935afd61386bb8cd to your computer and use it in GitHub Desktop.
Save seb776/0bf5208236e8a1ca935afd61386bb8cd to your computer and use it in GitHub Desktop.
Powershell count lines of code
// Taken from here https://www.limilabs.com/blog/source-lines-of-code-count-using-powershell
(dir -include *.cs -recurse | select-string "^(\s*)//" -notMatch | select-string "^(\s*)$" -notMatch).Count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment