Watermark Studios
Watermark Studios

Reputation: 1183

How do I get TODO comments in HTML files to show up in Task List in Visual Studio?

So, I have TODO comments showing up in my task list as long as the TODO comment is in a C# file. The TODO comments in HTML, CSS, or JScript aren't showing up in my Task List. Is there a way to enable this in Visual Studio 2010 Pro?

Upvotes: 17

Views: 21006

Answers (5)

Arun Prasad E S
Arun Prasad E S

Reputation: 10115

It works in Visual Studio 2015

Only issue is that, that particular page is needed to be opened to view the tasks.

Add Task as in normal C#

//TODO: this is javascript task

Upvotes: 1

Sezo Hessen
Sezo Hessen

Reputation: 31

Try :

<!-- //TODO::this is to do comment -->

Upvotes: 0

gremlin
gremlin

Reputation: 73

<% //TODO: page side task %>

i.e. escape to code and then use that language's tasking comment.

So, then alternatively:
<% 'TODO: page side task for VB %>

Note Arun's caveat about it only showing with the page open, which might be why "NO" is the top answer, because it doesn't fully accomplish what was asked.
(In fact this really just expands his answer, but I didn't yet have the points to make it a comment.)

Upvotes: 4

rkever
rkever

Reputation: 884

With Resharper, which you should have if you don't, has the todo list window your looking for. It parses all the those files (js, css, html, c#, etc.). You can dock that window with all your other windows.

Upvotes: 5

kroonwijk
kroonwijk

Reputation: 8400

Simple answer: NO.

From: How to: Create Task List Comments

The Task List displays comments in your code that begin with the comment marker for your development language. Next to the comments, the Task List also displays a default task token, such as TODO, HACK, or UNDONE, or a custom comment token. The number of comments that appear in the Task List may change, depending on the type of project you are working on. With Visual Basic and Visual C#, the Task List displays all the comments in the solution. With Visual C++ projects, the Task List displays only the comments that are found in the file that is currently active in the editor.

So it is only supported in VB, C# and C++ projects.

Upvotes: 8

Related Questions