githubEdit

Task list comment tokens

Streamline development by highlighting actionable items in code, improving visibility, collaboration, and maintainability

Task list comment tokens improve code maintainability and communication between busy developers by marking unfinished tasks or known issues directly in the source. They integrate well with tools for tracking and automation, making them valuable for managing technical debt and streamlining code reviews.

Comment tokens

Here is a list of color-coded tokens used the source code for this platform.

🔴 RED code does not work/compile:

// ERROR: This code throws a specific reproducible error.

// BROKEN: This code is broken and will not run.

// WTF: WHAT THE ****?

🟠 ORANGE code works but is not right:

// HACK: This code has intentionally been hacked to work. It should NOT go into any 
// production release.

// FIXME: This code works but could be better. Needs better abstraction, 
// maintainability, performance, etc.

// BUG: This code works and was expected to be right but a bug has been found (usually
// flagged post-production).

// REVIEW: This code is probably right but should be reviewed for peace of mind.

// SMELLS: Same as FIXME.

🔵 BLUE code works but needs more features or more explaining:

Visual Studio

The Task Listarrow-up-right tool in Visual Studio lets you track code comments that use tokens like TODO and HACK or custom tokens. For example:

VS Code

VS Code does not natively support Task List comment tokens in the same way as Visual Studio, but equivalent functionality is achieved using the ToDo Treearrow-up-right extension.

Extension ID: Gruntfuggly.todo-tree

You can define additional tags in the extension settings, and you can also define your own styles, regexes, and folders to include/exclude. For example:

Last updated

Was this helpful?