如何在Visual Studio代码中记录AngularJs函数?

问题描述

我习惯DoxyGen记录我的C和C ++。

现在我正在编码AngularJ(不是Angular),并使用Visual Studio Code作为我的IDE。

我想记录我的函数,以便当我希望在代码调用一个函数时,可以键入其名称,并让IDE显示其说明以及其参数和返回值。我认为我的意思是IntelliSense(?)。

对于Doxygen,它就像

/**
 * Adds two numbers and returns the total.
 *
 * @Param [in] number_1
 * @Param [in] number_2
 *
 * @return the sum of the two numbers
 */

如果有什么不同,我可以在我的AngularJS控制器中使用

const Self = this;

Self.Add = function(number_1,number_2)

而不是$scope

我应该如何记录?


[更新]我不能使用JsDoc样式,因为我的函数被声明为Self.Add = function(number_1,number_2)而不是JS function Add (number_1,number_2):-(

有什么想法吗?没有其他人对AngularJ使用VS Code吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...