Dotnet logo

.NET Tools

Essential productivity kit for .NET and game developers


Resharper 3.0 EAP in Action – The Todo Explorer

The ReSharper 3.0 EAP has been in progress for about two weeks now. This is the first post in a series that will look in detail at some of the new features that will be available in this latest version of ReSharper.

The To-do Explorer

In Visual Studio.NET 2005, you can use the Task List window to show comments with the keyword todo in it. However, this only works with files that are open in the IDE; it’s not going to show you TODOs in other parts of your solution that you don’t currently have open, or any other keyword EXCEPT todo.
Visual Studio.NET 2005 Tasklist
The Visual Studio.NET 2005 Task List window

In ReSharper 3.0, you get the much more useful To-do Explorer. When you open this window (found in ReSharper -> Windows -> To-do Explorer), by default you see a solution-wide listing of all comments with the prefix NOTE, TODO or BUG.
ReSharper 3.0 ToDo Explorer
The new To-do Explorer window

The default keywords that the To-do explorer looks for can be changed or added to by clicking the “To-do settings” icon in the window.
To-do Explorer settings

In the settings window, you can create new keywords to search for or edit the existing keywords as you’d like. This could be useful, for example, if you have a references to JIRA tickets in your comments, like:
//PROJ-1655: The following code block was added because of a change request from a client
You could add a pattern to match the keyword “PROJ-####” and see all JIRA tickets mentioned in your code.
To-do explorer keyword editing

Editing keywords in the To-do explorer

These To-dos can also be exported to a text file and can also be grouped to make the To-dos easier to read, so you can find which projects, namespaces, directories, etc … contain To-dos.
To-do explorer view options
The To-do Explorer view options

ReSharper, Visual Studio, JetBrains
image description