> For the complete documentation index, see [llms.txt](https://docs.shiftiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shiftiq.com/contributors/conventions/task-list-comment-tokens.md).

# Task list comment tokens

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:

```csharp
// 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:

```csharp
// 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:

```csharp
// TODO: Functionality is planned but not yet implemented.

// NOTE: Better explain what's going on. This gives a higher profile to standard 
// comments and allows notes to be found in the to-do pane.
```

## Visual Studio

The [Task List](https://learn.microsoft.com/en-us/visualstudio/ide/using-the-task-list?view=vs-2022) tool in Visual Studio lets you track code comments that use tokens like `TODO` and `HACK` or custom tokens. For example:

<figure><img src="/files/zNyabu1rRLN19zAe5iog" alt="Contributor 01"><figcaption></figcaption></figure>

## 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 Tree](https://marketplace.visualstudio.com/items?itemName=Gruntfuggly.todo-tree) 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:

<figure><img src="/files/qVvvBFQEFTAqCjhR0hjO" alt="Contributor 02"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.shiftiq.com/contributors/conventions/task-list-comment-tokens.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
