Search code examples
xmlvisual-studiotodo

Visual studio TODO comment in xml file to task list


Is it possible to put TODO comments from xml files included in project to Task list in Visual Studio 2013?

We are using a lot of XML files and it would be handy to use TODO, HACK or other keywords for Task list.


Solution

  • Resharper has a To-do Explorer window which will pick up any ToDos in your XML files. You can configure it to report 'HACK' or any other pattern in the Resharper > Options > Tools > To-do Explorer. The pattern is a Reg-Ex so for example the Todo pattern is:

    (?<=\W|^)(?<TAG>TODO)(\W|$)(.*)