Search code examples
javascriptvisual-studio-2012tasklist

Visual Studio 2012 Task List for JavaScript


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.


Solution

  • 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