问题描述
我习惯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 (将#修改为@)