[英]Is there a way to get VSCode to display addition intellisense information about JavaScript functions from their comment lines?
Visual Studio Code provides displays useful hover-over information about a function in a JavaScript module, like this: Visual Studio Code 在 JavaScript 模块中提供有关 function 的有用悬停信息,如下所示:
Is there a way to get it also display a comment line above the function so that one can have additional information about the function displayed, eg examples of how to use the function?有没有办法让它在 function 上方显示注释行,以便显示有关 function 的其他信息,例如如何使用 function 的示例?
I remember this was possible in NetBeans with PHPDoc, for example.我记得这在 NetBeans 中是可能的,例如,使用 PHPDoc。
Use JS-Doc format.使用 JS-Doc 格式。 Then it should work.
然后它应该工作。 https://jsdoc.app/
https://jsdoc.app/
/**
* Some comment
*/
export const replaceAll = (text: string, search: string, replace: string) => {
return text.split(search).join(replace);
};
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.