Is there a way to generate JSDoc comments in Visual Studio Code

前端 未结 4 1466
一生所求
一生所求 2021-02-04 23:04

I am currently developing a NodeJS project and found out that there is no built in functionality to create JSDoc comments for functions/methods.

I am aware of the TypeSc

相关标签:
4条回答
  • 2021-02-04 23:42

    Visual Studio 1.10 is now able to generate JSDoc comments.

    Just type /** above the function

    See Also:

    • VS Code Docs > Languages > Javascript > JSDoc Support
    • VS Code February 2017 Release Notes > Auto JSDoc Comments
    0 讨论(0)
  • 2021-02-04 23:47

    Maybe give this JSDoc extension a try: https://marketplace.visualstudio.com/items/stevencl.addDocComments

    You can install extensions in VS Code from View > Command Palette

    0 讨论(0)
  • 2021-02-04 23:48

    A related one.

    I was finding for Visual Studio 2017 Community edition, below helped:

    https://marketplace.visualstudio.com/items?itemName=MichaelObermeyer.DocStubsJs2017

    0 讨论(0)
  • 2021-02-05 00:03

    I really like "Document This".

    Installation

    Launch VS Code Quick Open (⌘+P), paste the following command, and press enter.
    ext install docthis

    https://marketplace.visualstudio.com/items?itemName=oouo-diogo-perdigao.docthis

    It has some nice features like adding doc blocks to an entire file.

    0 讨论(0)
提交回复
热议问题