8

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.

  • This appears to be the same problem I am having with a `web.config` file and my TODO's there not appearing in Tasks list. Resharper was the answer for me. – GER Jan 19 '17 at 16:00

2 Answers2

4

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|$)(.*)
openshac
  • 4,966
  • 5
  • 46
  • 77
  • Is there a way to exclude files this way too? Say for example, I dont want any TODO lines to show up from external javascript libraries? – BinaryNexus May 14 '18 at 13:29
0

AFAIK, there's no built-in tool to view comments from XML files in Task list window of Visual Studio 2013.

But there are several 3-d party tools. For example, VS10x Comments Extender, which has a shareware version to download. I've never tried such tools myself but you can take a look at description on Visual studio gallery.

There's also a post about aspx/ascx and cshtml files.

Community
  • 1
  • 1
Mikhail Tumashenko
  • 1,683
  • 2
  • 21
  • 28