Using To-do Lists
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:
You can also define your own patterns.
To navigate between to-do items in the whole solution
- Press Ctrl+Alt+. or choose in the main menu .
-
In the
To-do Explorer Window
that opens, click
or
to navigate to the next or previous item. ReSharper will automatically open the corresponding line in the editor.
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
- Open the Tools | To-do Items page of ReSharper options.
- Click Add on the toolbar.
-
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|$)(.*)
- Select where ReSharper should apply the expression to find the to-do items (comments, strings, and/or identifiers).
- Optionally, specify whether the pattern is case sensitive.
- Select a color and an icon to define how the matched items will look in the To-do Explorer Window.
- Click OK to add this pattern to the list.
- You can also duplicate, edit or remove existing patterns.
- 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 | Protobuf | JSON |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
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.