ReSharper Web Help

ReSharper provides an easy way to manage small tasks related to source code. It comes with three predefined patterns of to-do items: Todo, Bug, and Not Implemented. You can define your own patterns in the Options dialog box. Add to-do items into your source code and navigate between them using To-do Explorer.

To define a to-do item pattern
  1. On the main menu, choose ReSharper | Options. The Options dialog box opens.
  2. Click To-do Items on the left pane of the Options dialog box.
  3. Click Create on the To-do Items pane. You can also duplicate, edit or remove an existing pattern.
  4. In the Create/Edit Pattern dialog box, specify a pattern name, and type a regular expression that contains a keyword that helps identify items in the source code, for example:
    (\W|^)(?<TAG>MyItem)(\W|$)(.*)
  5. Optionally, specify whether the pattern is case sensitive and where to search in: comments, strings, identifiers using the corresponding check boxes. By default, search is carried out in comments only.
  6. Define color scheme and icon to denote the item in the To-do Explorer window. For more information, see To-do Explorer.
  7. Click OK to add this pattern to the list.
  8. Click Save or Save To to apply changes.
To create a to-do item in the source code
  1. Open a file in the editor.
  2. Create a line comment, and type the item keyword, followed by text.
To navigate between to-do items
  1. On the main menu, choose ReSharper | Windows | To-do Items.
  2. In the To-do Explorer window click Reference__Windows__To-do_Explorer__Next or Reference__Windows__To-do_Explorer__Previous to navigate to the next or previous item. The corresponding file opens simultaneously in the editor, with the caret positioned at the to-do item.

Navigation_and_Search__Navigating_Between_To-do_Items__To-do_Explorer

Tip

To navigate between to-do items in a current file, you can use the Marker Bar, where they're identified by cyan markers. For details, see Marker Bar and Status Indicator.

This feature is supported in the following languages/technologies:

C# VB.NET HTML ASPX Razor JavaScript TypeScript CSS XML XAML RESX Build Scripts
feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available

Tip

The instructions and examples given here address the use of the feature in C#. For details specific to other languages, see the corresponding topics in the ReSharper by Language section.