Aracılığıyla paylaş


How to: Use Task List Shortcuts

In most Visual Studio programming languages, you can use Task List shortcuts much like bookmarks to mark lines of code. As with bookmarks in the Bookmarks window, you can click on any shortcut displayed in the Task List to display the file indicated in the Code Editor and jump to the line of code marked.

For information on setting and using bookmarks, see How to: Bookmark Code. For information on inserting Task List comments, see How to: Create Task List Comments.

To add a Task List shortcut

  1. In the code window, place the insertion point within the line you want to mark.

  2. On the Edit menu, select Bookmarks and choose Add Task List Shortcut.

    A blue arrow icon appears the Indicator margin of the Editor next to the selected line.

  3. In the Task List, select Shortcuts in the dropdown box.

    A new Task List shortcut entry displays the text of the marked line. Each entry includes a Description, a File name, and the Line number in that file marked by the shortcut.

  4. To edit the text of the new entry, select Description.

    Note

    Editing the Description of a shortcut in the Task List window does not modify the line marked in the Editor.

To jump from a Task List shortcut to a line of code

  1. In the Task List, select Shortcuts in the dropdown box.

  2. Double-click any shortcut entry.

    The file opens and the line is selected.

To indicate that a task has been completed

  1. Finish editing line marked by the shortcut.

  2. In the Task List, select the check box for the shortcut entry.

    The shortcut entry is now shown with a strikethrough, but it is still active. The blue arrow icon for the shortcut remains in the Indicator margin of the Editor next to the line marked.

To remove a Task List shortcut

  1. In the Task List, select the shortcut no longer needed.

  2. On the Edit menu, select Bookmarks and choose Delete. When a message box pops up to confirm the operation, click OK.

    The shortcut entry is removed from the Task List, and the corresponding blue arrow icon is removed from the Indicator margin of the Editor.

See Also

Tasks

How to: Navigate Code and Text

How to: Go To a Line of Code

Concepts

Editor Convenience Commands and Features

Reference

Task List (Visual Studio)

Bookmark Window

Code and Text Editor

Other Resources

Setting Bookmarks in Code

Finding and Replacing