Skip to content
| Marketplace
Sign in
Visual Studio>Tools>JScript vsdoc Stub Generator
JScript vsdoc Stub Generator

JScript vsdoc Stub Generator

Michael Obermeyer

|
6,723 installs
| (4) | Free
This is a simple extension that auto-generates vsdoc comments for JScript when completing a triple-slash, similar to other languages in Visual Studio.
Download

This extension for VisualStudio 2012+ can be found here.

This extension's goal is to provide a simple way to add vsdocs to JavaScript that acts similar to other XML comments provided by Visual Studio. A comment stub is created when a triple-slash ("///") is added on a new line.

Currently, the extension will add a summary to any /// comment placed immediately after a function header, and it will create parameter tags for each parameter in the function. It will also create a return tag if it finds something that is returned within the scope of the function.

This extension is my first, so I am sure there are issues, but feel free to let me know of any you may find, and I will try to get to them when I can.

Here is a nice reference for the basic syntax of these docs: http://weblogs.asp.net/bleroy/archive/2007/04/23/the-format-for-javascript-doc-comments.aspx

Rev 1.2.2

  • Included a type attribute to all return tags.

REV 1.2.0

  • Adding a new line while inside an xml comment should create a new comment line.
  • XML comments will now only be added when a triple slash is added on the line immediately following a function declaration (No more random summary tags)
  • New doc comments should auto format to be indented one more tab than the function declaration.

REV 1.1.5

  • Improved checking for return statements.

REV 1.1.3

  • Improved support for functions with parameters defined across multiple lines.

REV 1.1

  • It now attempts to add a return tag if the function returns something. (I'm sure this will fail on more complicated javascript, but it will catch a decent number of cases)
  • Corrected an issue that would cause the extension to crash when commenting at the beginning of a JavaScript file.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft