Visual Studio 2022 looks great. But it can gain very interesting features when you add plugins to it.

The most complete and famous plugin we have is ReSharper. However, it is not the most… economical choice.

Here are 3 choices of free plugins for those who don’t want to give up productivity but are penny-pincher interested saving money.

FineCodeCoverage

Do you do automated tests? Good job. But do you know how much of your code is covered by tests and which lines are unprotected?

With this plugin you can check the code coverage of each class and method directly from VS22.

The FineCodeCoverage also indicates in the editor if the line of code is covered or not by some test. The color of the colored bar to the left of the line numbering indicates its coverage status.

  • green: line covered by test
  • red: line not covered by test
  • yellow: line partially covered by test

Marketplace: FineCodeCoverage
GitHub: Repository

coveraged-line coveraged-percentage

CodeMaintainability 2022

Visual Studio performs quality check of your code through Analyser > Calculate Code Metrics. However, CodeMaintainability 2022 allows this visualization directly in the editor. Displaying in the signature of each method its maintenance index and an icon indicating the “health” of its code.

Clicking on the index indicator displays other measurements of code quality for that method.

code-maintenability

The only thing missing was the cognitive complexity metric to be complete.

Marketplace: CodeMaintainability 2022

CodeMaid

Visual Studio is able to make some refactoring suggestions in your code. The CodeMaid plugin increases the IDE’s native repertoire and enables a wider range of refactorings to make your code more clean and simple.

In addition, the plugin also has features such as:

  • Detection of code smells
  • General code cleanup
  • Configuration of cleaning rules
  • Spades: Class structure screen
  • Build loading bar

    Marketplace: CodeMaid
    GitHub: Repository

Miscellaneous Resources

code-maintenability

Build loading bar:

code-maintenability

Spades - Class structure

code-maintenability

Configuration of options and rules

code-maintenability