Tips for Visual Studio-tasklist)

Source: Internet
Author: User

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.

 

Shortcuts): By default, this method is invisible to the task list drop-down list. You can use Edit-> bookmarks-> Add/remove task list shortcut cut or the shortcut keys Ctrl + e, CTRL + T (The original text seems to be incorrect. Here it should be Ctrl + k, CTRL + H.. The blue arrow on the left shows the added shortcut. A new type of shutcuts will appear in the task list below. This type of task has five attributes: priority, whether to complete, description, file, and line. The file and line records the location of the shortcut, which cannot be edited. Double-click shortcut to jump to the corresponding position in the source code.

 

(In my opinion, the only difference between the shortcut function and the bookmarks is that this line of code is displayed in the shortcut mode. But its functions are far from powerful bookmarks !)

Shortcuts): By default, this method is invisible to the task list drop-down list. You can use Edit-> bookmarks-> Add/remove task list shortcut cut or the shortcut keys Ctrl + e, CTRL + T (The original text seems to be incorrect. Here it should be Ctrl + k, CTRL + H.. The blue arrow on the left shows the added shortcut. A new type of shutcuts will appear in the task list below. This type of task has five attributes: priority, whether to complete, description, file, and line. The file and line records the location of the shortcut, which cannot be edited. Double-click shortcut to jump to the corresponding position in the source code.

 

(In my opinion, the only difference between the shortcut function and the bookmarks is that this line of code is displayed in the shortcut mode. But its functions are far from powerful bookmarks !)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.