0
我正在用Mac上的Visual Studio Code編寫Javascript。如何使用Visual Studio Code的Intellisense查看函數的文檔?
我有這個功能,在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) {
然而,當智能感知提示彈出它看起來像這樣:
這一切都混亂了,不顯示完整的文檔。是否有某種組合鍵需要按下才能在工具提示中顯示完整的功能文檔?
Alt + F12偷看對象定義......這是你的意思嗎? – ifconfig