How to: Count the lines of code (project/solution)

If you ever wondered how many lines your code is, you can easily get such information (along with other -arguably more important- bits) by hitting the Calculate Code Metrics.

Right click on the project, half way down the pop up window, you will notice the option “Calculate Code Metrics”.

This should bring up the window that displays information about the Lines of Code, the Maintainability Index, the Cyclomatic Complexity, the Depth of Inheritance, and the Class Coupling.

eg.

code metrics

MGR: the Intelogist

About MGR: the Intelogist

SharePoint Server developer, turned Sitefinity developer, turned Angular developer, turned SharePoint Online consultant, turned Unily consultant, turned O365 consultant... Never a dull moment!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

This site uses Akismet to reduce spam. Learn how your comment data is processed.