Everyone must be familiar with the error list. When the statements we write have syntax errors, the error information will be listed in the error list. double-click an error. Visual Studio will automatically help us locate the error in the source code.
The task list is the twin brother of the error list. You can open it through View-> Task List. There are two types of tasks: user task and comment. You can select which type to view from the drop-down list on the top of the task list.
User task): There is a Create User Task button at the top of the Task list. Click it to create a new user task. The user task has priority and whether the task is completed. The three attributes are described (refer ).
Warning:User Tasks are stored in the hidden solution file (. suo), so they are easily destroyed.
Comment): I think we all have this experience: write some test code, and then write // todelete: *** in the comment :***. After the task is completed, search for todelete in full and then delete the test code.
Currently, Visual Studio can help you easily locate comments starting with special tags. For example, // TODO:
// TODO: to remove the test code.
The following figure is displayed in the task list.
To locate the annotation in the source code, double-click it. By default, there are three HACK labels, TODO and UNDONE. You can add your own labels. Tools-> Options, find Environment-> Task List. Here you can add, modify, and delete tags. The MyTag tag is newly added.