admin管理员组文章数量:1397117
Is it possible to add tasks (Todos, hackes, etc) to the task list via Comments. (For javascript files)
Similar to the functions explained here:
- /
- ;feature=player_embedded
The menu points in the second video only apply to Visual Studio 2012.
Is it possible to add tasks (Todos, hackes, etc) to the task list via Comments. (For javascript files)
Similar to the functions explained here:
- http://code-inside.de/blog-in/2008/11/19/howto-taskmanagement-with-visual-studio-todos-hacks-co/
- http://www.youtube./watch?v=l47g7_Qe8HE&feature=player_embedded
The menu points in the second video only apply to Visual Studio 2012.
Share Improve this question edited Feb 6, 2013 at 15:07 Blachshma 17.4k4 gold badges61 silver badges73 bronze badges asked Feb 6, 2013 at 15:02 StefanStefan 15k17 gold badges92 silver badges153 bronze badges 6- 1 What is your question? – John Saunders Commented Feb 6, 2013 at 15:04
- @JohnSaunders: He's asking whether this can work with ments in Javascript files. – SLaks Commented Feb 6, 2013 at 15:05
- @SLaks: thanks for the translation – John Saunders Commented Feb 6, 2013 at 15:10
- @SLaks: Yes, I want to add Todos to the task list via Commetns in JavaScript – Stefan Commented Feb 6, 2013 at 15:48
- Try it :) I tried and it doesn't seem to pick these tags up from .js files. – allen Commented Feb 6, 2013 at 17:57
2 Answers
Reset to default 6Another option is the excellent Javascript parser extension: http://visualstudiogallery.msdn.microsoft./288a2b0f-1357-47b4-8215-1134c36bdf30
I just stumbled on the feature where it supports // TODO: type ments, and you can define your own keywords.
Apparently task list functionality is not available in plain Visual Studio for javascript files.
The good news is you can get this by installing the extension "JSLint.VS2012".
http://visualstudiogallery.msdn.microsoft./1a417c37-4d6f-43ca-b753-6ea6eb5041fd http://jslint4vs2010.codeplex./ (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.
The bad news is it is a bit rough.
- You end up with multiple instances (with each successive build?). You can manually delete them to start again.
- 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/t/414634.aspx/1
本文标签: Visual Studio 2012 Task List for JavaScriptStack Overflow
版权声明:本文标题:Visual Studio 2012 Task List for JavaScript - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744147545a2592909.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论