Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 755
Jan Peldřimovský Avatar asked Apr 20 '15 12:04

Jan Peldřimovský


People also ask

How do I use Todo code in Visual Studio?

Double-clicking a TODO in the tree will open the file and put the cursor on the line containing the task. In open files, TODOs can also be highlighted for easier navigation. You can further customize the extension by specifying specific flags in VSCode settings, more details can be found at TODO Tree wiki page.


1 Answers

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|$)(.*)
like image 174
openshac Avatar answered Nov 10 '22 13:11

openshac