【发布时间】:2017-12-26 09:38:41
【问题描述】:
我正在 Mac 上使用 Visual Studio Code 编写 Javascript。
我有这个功能,以JSDoc格式记录:
/**
* Adds the passed Matter Body to the simulation.
* @param {Matter.Body} body - The body to add to the physics simulation
* @param {string} imageUrl - The URL of the image to use to represent this body in the simulation. It should match an image URL that has already been added via loadImages()
* @param {function} [onCollide] - Optional function to call when this body collides
*/
addObject(body, imageUrl, onCollide) {
但是,当 Intellisense 工具提示弹出时,它看起来像这样:
这一切都乱七八糟,没有显示完整的文档。是否需要按下某种组合键才能在工具提示中显示完整的功能文档?
【问题讨论】:
-
Alt+F12 偷看对象定义...是这个意思吗?
标签: javascript visual-studio-code jsdoc