Question

Is it possible to add tasks (Todos, hackes, etc) to the task list via Comments. (For javascript files)

Similar to the functions explained here:

The menu points in the second video only apply to Visual Studio 2012.

Was it helpful?

Solution 2

The good news is you can get this by installing the extension "JSLint.VS2012".

http://visualstudiogallery.msdn.microsoft.com/1a417c37-4d6f-43ca-b753-6ea6eb5041fd http://jslint4vs2010.codeplex.com/ (VS2012 version only changes install target)

I found this accidentally as their own documentation (on codeplex) does not reveal they have this. After installing the setting is at Tools | JS Lint Options on the Visual Studio Options tab.

JsLint TODO's demo

The bad news is it is a bit rough.

  1. You end up with multiple instances (with each successive build?). You can manually delete them to start again.
  2. Double clicking does not jump to the code. However the File & line columns are there.

Also found via somewhere on SO that Resharper or Telerik JustCode provide this. Or an old "Roll your own" solution via List javascript tasks in Visual Studio Task list at http://forums.asp.net/t/414634.aspx/1

OTHER TIPS

Another option is the excellent Javascript parser extension: http://visualstudiogallery.msdn.microsoft.com/288a2b0f-1357-47b4-8215-1134c36bdf30

I just stumbled on the feature where it supports // TODO: type comments, and you can define your own keywords.

Apparently task list functionality is not available in plain Visual Studio for javascript files.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top