talira

Better Comments

Color-coded alerts, queries, TODOs and highlights in your code comments in VS Code

open sourceMITfree

A VS Code extension that styles comments by a tag at their start, so alerts (!), queries (?), TODOs, highlights (*) and commented-out code (//) stand out in different colors. Tags are configurable in user or workspace settings, each with its own color, background, strikethrough, underline, bold and italic, and new ones can be added; multiline comments and plain text files can be styled too. Changes to the tags need a restart of VS Code. MIT licensed.

Problems it solves

  • make TODO and warning comments stand out in VS Code
  • highlight different kinds of comments in different colors
  • see commented-out code at a glance in my editor

Features

  • styles alerts, queries, TODOs, highlights and commented-out code
  • configurable tags with colors, background, bold, italic, underline and strikethrough
  • custom tags
  • styles multiline comments and, optionally, plain text files

Limitations

  • Changes to the tags need a restart of VS Code1

Alternatives

The same job

These do what Better Comments does.

  1. Error Lens Shows errors and warnings inline at the end of the line in VS Code, with the whole line highlighted

Compare Better Comments with the top 3