Adds simple jsdoc comments for the parameters of a selected function signature
Перейти к файлу
Steven Clarke c0139b210b Added code of conduct to readme 2016-06-22 15:04:45 +01:00
.vscode Cleaning up and updating launch.json 2016-02-27 20:49:41 +00:00
images Added image 2015-11-13 18:58:18 +00:00
typings initial commit 2015-10-01 10:43:08 +01:00
.gitignore initial commit 2015-10-01 10:43:08 +01:00
.vscodeignore initial commit 2015-10-01 10:43:08 +01:00
LICENSE.md Update LICENSE.md 2015-11-18 15:13:17 +01:00
README.md Added code of conduct to readme 2016-06-22 15:04:45 +01:00
extension.ts Cleaning up and updating launch.json 2016-02-27 20:49:41 +00:00
functionParser.ts Return {} instead of {any} for no type 2016-06-16 15:38:32 +01:00
package.json Update version number 2016-06-16 15:56:10 +01:00
tsconfig.json initial commit 2015-10-01 10:43:08 +01:00
vsc-extension-quickstart.md initial commit 2015-10-01 10:43:08 +01:00

README.md

vscode-comment

Adds simple jsdoc comments for the parameters of a selected function signature

Using

In a typescript or javascript file, select a function signature, ideally one that contains one or more parameters. Select the whole function signature then invoke the Add Doc Comments extension (open the command palette (F1 on Windows) and look for the command 'Add doc comments'. Hit enter.)

install and work

The extension will parse the selected signature and add @param and @return tags for each parameter and any return type in the selected signature, directly above the signature.

Limitations

The extension does not support any other type of jsdoc tags. It only calculates @param and @return

Parameter types are not inferred based on usage. If a type is not specified, empty braces {} are returned.

Other extensions

Document This provides the same functionality but supports many more tags

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.