有没有一种方法可以在Visual Studio Code中生成JSDoc注释 [英] Is there a way to generate JSDoc comments in Visual Studio Code

查看:141
本文介绍了有没有一种方法可以在Visual Studio Code中生成JSDoc注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发NodeJS项目,发现没有内置功能可以为函数/方法创建JSDoc注释.

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

我知道存在的TypeScript定义,但是我真的找不到符合我需要的东西.

I am aware of the TypeScript definitions that exist but I couldn't really find anything to match what I need.

WebStorm具有一些非常简洁的JSDoc功能.能以某种方式实现类似的功能吗?

WebStorm, for example, has some pretty neat JSDoc functionalities. Can one somehow achieve a similar functionality?

推荐答案

Visual Studio 1.10现在可以生成JSDoc注释.

Visual Studio 1.10 is now able to generate JSDoc comments.

只需在函数上方输入/**

另请参见:

  • VS Code Docs > Languages > Javascript > JSDoc Support
  • VS Code February 2017 Release Notes > Auto JSDoc Comments

这篇关于有没有一种方法可以在Visual Studio Code中生成JSDoc注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆