Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Comment counterNew to Visual Studio Code? Get it now.
Comment counter

Comment counter

realappie

|
1,366 installs
| (0) | Free
vscode extension to calculate comment density
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Comment counter

This extension will calculate the comment density by dividing the commented lines of code by the lines of code. This will help you get an overview of how good a file is commented, thus ensuring you maintain your project's level of documentation.

demo

Language support

This extension currently supports a lot of languages as listed here but will only automatically* calculate comment density for the following languages

  • Javascript
  • Typescript

If you want your language to be automatically* calculated too, just open up an issue or create a PR and add the language to the activationEvents in the package.json file.

You can always press on the button in the statusbar to kick off the calculations.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft