24

Is there native functionality or a recommended extension to get the number of lines of code in a project/workspace or folder in VS Code?

I found this older post below for for VS 2010 & 2013 using Analyze --> Calculate Code Metrics as native functionality. I'm looking at extensions that might do this as well. Also, I am using a specific theme I like (Dracula Official) so I'd prefer not to have to add another theme if possible.

VS 2010 & 2013 Analze -> Calculate Code Metrics

Jason_L
  • 427
  • 1
  • 3
  • 12

1 Answers1

40

check this extension for vscode counting lines of code in a particular directory, workspace and provides many other feature as well.

https://marketplace.visualstudio.com/items?itemName=uctakeoff.vscode-counter

prashant kumar
  • 601
  • 8
  • 7
  • Thank you very much, exactly what I was after. – Jason_L Aug 20 '20 at 19:46
  • Thanks Mohammad....actually running linux devcontainer so this is extremely helpful. Looking it up, the syntax is `wc [OPTION]... [FILE]...` and returns 'number of lines, word count, byte and characters count' Seems like you have to specify files so not been able to get it working on a folder. Thx! – Jason_L Aug 31 '21 at 23:10