Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.09 KB

File metadata and controls

28 lines (19 loc) · 1.09 KB
title description author ms.author ms.date ms.assetid
Task Comments
Adding task comments to your code
jmatthiesen
jomatthi
11/09/2020
562DCB46-D8FA-4DC4-AAEA-F274448C4CD2

Task Comments

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