A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
Hi @Dani_S ,
1.How many lines of code in my solution ?
Do you mean you want to count how many lines of code in every file inside of your solution? If so, you can follow this:
- In your solution, press Ctrl + Q and type Developer PowerShell to open it.
- Input this command:
Get-ChildItem -Recurse -Include *.cs,*.js,*.ts,*.cpp,*.h |
Get-Content |
Measure-Object -Line
You can add more file type that you want to count, the above example will count the file type .cs, .js, .ts, .cpp, .h. If you want to exclude folder like bin or obj, use this example:
Get-ChildItem -Recurse -Include *.cs |
Where-Object { $_.FullName -notmatch "\\bin\\|\\obj\\" } |
Get-Content |
Measure-Object -Line
2.I have README.md files, how many lines inside it?
You can open the file and scroll to the end of the file, the last line number will tell you how many lines.