寻求:如何在Webstorm IDE(v 4)中使用jsDoc的示例 [英] Seeking: Example of how to use jsDoc with the Webstorm IDE (v 4)

查看:94
本文介绍了寻求:如何在Webstorm IDE(v 4)中使用jsDoc的示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我仍在学习js并尝试Webstorm IDE,这似乎很不错(包括跳转到var/function声明).

I'm still learning js and trying out the Webstorm IDE, which seems sweet (including jumping to var/function declarations).

我可以看到如何获取jsdoc注释的模板,但我对此并不熟悉,并寻找一个示例来了解如何在注释中提供更多详细信息以及如何查看那个细节.

I can see how to get the template for a jsdoc comment to appear but I'm not experienced with it and looking for an example of how to provide more detail in the comment and how to view that detail.

推荐答案

WebStorm 4.0支持大多数 WI-1295 .

WebStorm 4.0 supports most of JSDoc tags. For example, when you specify @type for variable, completion will work better and assignments of expressions with wrong types will be highlighted as warnings. Element documentation popup appears when Ctrl+Q is pressed on some reference. More specific info about supported tags can be found in JetBrains issue tracker, for example issue WI-1295.

此外,预计在第5版中将更好地支持Google闭包编译器标签.

Also, better support for google closure compiler tags is expected in 5th version.

这篇关于寻求:如何在Webstorm IDE(v 4)中使用jsDoc的示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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