ReSharper comes with four predefined patterns of to-do items: Todo, Note, Bug, and Not Implemented. You can define your own patterns in the ReSharper Options dialog box. Add to-do items into your source code and navigate between them using To-do Explorer.
- On the main menu, choose ReSharper | Options.
- In the ReSharper Options dialog box, select Tools | To-do Items.
- In the Patterns section, click Create. You can also edit or clone an existing pattern.
- In the
Create/Edit Patterndialog box, specify a pattern name, and type a regular expression that contains a keyword that helps identify items in the source code, for example:
- Optionally, specify whether the pattern is case sensitive, and define color scheme and icon to
denote the item in the
- Specify where to search in: comments, strings, identifiers. By default, search is carried out in comments only.
- Click OK.
- Open a file in the editor.
- Create a line comment, and type the item keyword, followed by text.
- On the main menu, choose ReSharper | Windows | To-do Items.
- In the
To-do Explorer, click up or down arrow buttons. The corresponding files open in the editor, with the caret positioned at their to-do items: