ReSharper Help

Using To-do Lists

ReSharper | Windows | To-do Items
Ctrl+Alt+.
ReSharper_ShowTodoExplorer

ReSharper provides an easy way to track tasks and technical debt in your code - code items (comments, string literals, or identifiers) matching a specific pattern can be easily located in the whole solution using a dedicated tool window. There are three predefined patterns for commonly used to-do items:

  • A comment containing TODO
  • A comment containing BUG
  • A NotImplementedException in the code.
You can also define your own patterns.

To navigate between to-do items in the whole solution

  1. In the main menu, choose ReSharper | Windows | To-do Items or press Ctrl+Alt+..
  2. In the To-do Explorer that opens, click Reference__Windows__To-do_Explorer__Next or Reference__Windows__To-do_Explorer__Previous to navigate to the next or previous item. ReSharper will automatically open the corresponding line in the editor.
    Viewing to-do items with ReSharper

To navigate between to-do items in the current file, use the blue marks on the marker bar.

To define a custom to-do pattern

  1. Open the Tools | To-do Items page of ReSharper options.
  2. Click Add on the toolbar.
  3. Provide a title for your to-do pattern and specify a regular expression with keywords that you want to detect in comments. For example:
    (\W|^)(?<TAG>Refactor)(\W|$)(.*)
  4. Select where ReSharper should apply the expression to find the to-do items (comments, strings, and/or identifiers).
  5. Optionally, specify whether the pattern is case sensitive.
  6. Select a color and an icon to define how the matched items will look in the To-do Explorer.
  7. Click OK to add this pattern to the list.
  8. You can also duplicate, edit or remove existing patterns.
  9. Click Save to apply the modifications and let ReSharper choose where to save them, or save the modifications to a specific settings layer using the Save To drop-down list. For more information, see Managing and Sharing ReSharper Settings.

This feature is supported in the following languages/technologies:

C# VB.NET C++ 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

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

See Also

Last modified: 9 July 2015