Edit

Use Task List with code comments and shortcuts

The Task List tool in Visual Studio lets you track code comments that use tokens like TODO and HACK or custom tokens. You can also use this feature to manage task shortcuts that take you directly to a predefined location in code. By default, Task List opens at the bottom of the application window in the Visual Studio Interactive Development Environment (IDE):

Screenshot of the Task List window at the bottom of the application window in Visual Studio.

If you don't see the Task List window, select View > Task List, or use the keyboard shortcut Ctrl+\,T. Like other feature windows in the Visual Studio IDE, you can move the Task List window to any location on the IDE surface.

Use predefined tokens

Visual Studio prepares Task List content by scanning your code for comment markers and tokens. Several predefined tokens are available for C/C++, C#, and Visual Basic programs: HACK, TODO, UNDONE, and UnresolvedMergeConflict. These token labels are case insensitive.

Visual Studio recognizes a comment when it consists of three components:

  • The comment marker, such as //, #,