Posts

Showing posts from May, 2020

How well your code doing? - Visual Studio Code Metrics

Image
Today when I completed my work, I just curious how many lines of code that I have wrote so far. So I search how to calculate the lines of code and I found Visual Studio Code Metrics: A very valuable information source about your code and your solution. So I went little more deeper to understand what all these counts mean. And I was so interested with my findings and I thought I have to share these with you. I think this is a very cool and important feature of Visual Studio. So how to view these numbers? Simple, just navigate to Analyze  →  Calculate Code Metrics  And it will give you some numbers according the number of project that you have in your solution. In my case there are 8 project and here are my results: Ok, let's see what are these calculations and what are these numbers are and most importantly what are those mean to you. Maintainability Index This index shows how easy or hard to maintain or modify your code. This will give a number between 0-100 and colo