Task Comments

Applies to: yesVisual Studio for Mac noVisual Studio

When writing code, it's standard practice to explicitly comment unfinished or questionable code or quick workarounds with warnings. The default signal tokens provided by Visual Studio for Mac are TODO, HACK, FIXME, and UNDONE. Personalized tokens can be defined under Visual Studio > Preferences > Environment > Tasks, as illustrated in the following image:

Task list preferences

To add a new task comment, add a comment that includes the task keyword. For example:

//TODO: Finish this for all properties.

Visual Studio for Mac draws attention to these markers by highlighting them in the Task List window, which can be displayed using the View > Tasks menu:

The Task list window, showing a single TODO item

See also