0% found this document useful (0 votes)
26 views

Getting On Task: Todo Code Review This // Todo Code Review This

The Visual Studio Task List consolidates tasks from comments tagged in source code and those directly entered in the Task List window. Comments are tagged using TODO, HACK, UNDONE or custom tags added in the Task List options. Double clicking a task navigates to its location in code.

Uploaded by

Mahesa Sudiro
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Getting On Task: Todo Code Review This // Todo Code Review This

The Visual Studio Task List consolidates tasks from comments tagged in source code and those directly entered in the Task List window. Comments are tagged using TODO, HACK, UNDONE or custom tags added in the Task List options. Double clicking a task navigates to its location in code.

Uploaded by

Mahesa Sudiro
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 1

Getting on task

Use the Visual Studio Task List to keep track of a simple list of to-do items. The Task List window displays two kinds of tasks: User tasks: Tasks entered directly into the Task List window Task comments: Comments placed in your source code using special tags The Task List provides a consolidated list of tasks you enter directly into the Task List window and tagged comments you place inside your source code. The default set of tags you use to mark your comments comprises TODO, HACK, or UNDONE. You can create your own custom tags. To tag a comment within your source code, use the standard comment mark for your programming language, followed by one of the task comment tags. For example, to add a task comment in Visual Basic or C#, you type the following: VB:
todo Code review this

C#:
// todo Code review this

Tags may be entered in upper- or lowercase. By default, tags are in uppercase.

134

Using the Code Editor

The Task List window consolidates all your task comments in a single view. You can double-click a comment in the Task List to jump to the location in the source code where the comment appears. To open the Task List window, click Task List on the View window. Figure 1-6 shows an example of the Task List window.
Figure 1-6: Task comments from source code appear in the Task List window.

Always check the Task List for code samples you download from Microsoft and other third parties. The samples usually include a list of tasks you need to complete in order to use the sample. You can add your own task comment tags. Figure 1-6 uses a comment tag called TODO. To add your own task comment tags, do the following: 1. Choose Tools Options. 2. Expand the Environment folder. 3. Click Task List. 4. Type a name for the comment tag in the Name text box. 5. Click the Add button. Your new comment tag appears in the list. 6. Click OK.

You might also like