O'Reilly logo

Microsoft Visual Studio 2015 Unleashed, Third Edition by Mike Snell, Lars Powers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Comment Tasks

Comment tasks, like shortcut tasks, are associated with lines of code. But unlike shortcut tasks or user tasks, comment tasks are created by placing a code comment with a special string literal/token in a code file. There are three tokens defined by default by Visual Studio: HACK, TODO, and UNDONE.

There is no check box in the Task List to mark a comment task as complete. Instead, you simply remove the comment token from your code to remove the task from the list.

For example, the following C# code results in four different comment tasks in the Task List.

namespace Contoso.Fx.Integration.Specialized{    //TODO: Implement second constructor    public class MessageMapper : IMessageSink    {        public ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required