Visual studio code 如何在Visual Studio代码中记录AngularJs函数? 我习惯于记录我的C和C++。< /P>
现在我正在编写AngularJs(不是AngularJs),并使用VisualStudio代码作为IDE 我想记录我的函数,这样当我希望在代码中调用函数时,我可以键入它的名称,让IDE显示它的描述,加上它的参数和返回值。我想我指的是智能感知(?) 对于Doxygen,它将类似于Visual studio code 如何在Visual Studio代码中记录AngularJs函数? 我习惯于记录我的C和C++。< /P>,visual-studio-code,intellisense,javascript-intellisense,Visual Studio Code,Intellisense,Javascript Intellisense,现在我正在编写AngularJs(不是AngularJs),并使用VisualStudio代码作为IDE 我想记录我的函数,这样当我希望在代码中调用函数时,我可以键入它的名称,让IDE显示它的描述,加上它的参数和返回值。我想我指的是智能感知(?) 对于Doxygen,它将类似于 /** * Adds two numbers and returns the total. * * @Param [in] number_1 * @Param [in] number_2 * * @retur
/**
* 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
我应该如何记录它
[更新]我不能使用样式,因为我的函数声明为
Self.Add=function(number\u 1,number\u 2)
,而不是JSfunction Add(number\u 1,number\u 2)
:-(
有什么想法吗?没有人使用AngularJs的VS代码?如果是JavaScript,你看过JSDoc吗