自动生成eclipse CDT中的函数的注释(文档) [英] Auto generate comments (documentation) for functions in eclipse CDT

查看:746
本文介绍了自动生成eclipse CDT中的函数的注释(文档)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用eclipse Juno与CDT。我已经在cpp文件中编写了一个函数,我想为函数添加注释。 CDT是否支持通过输入/ **然后按回车自动生成评论?在我的情况下,自动生成的注释只能如下。

  / ** 
*
*

如解释这里,我甚至配置使用Doxygen支持。转到C / C ++ - >编辑器 - >文档工具注释:Doxygen。



我仍然得到如上所述。如何配置eclipse以添加自己的样式的评论?



即使在代码模板中,我也改变了评论。转到C / C ++ - >代码样式 - >代码模板 - >评论。我改变了类型,字段,方法。对于我来说,仍然没有运气。



有人可以帮我吗?



谢谢
Ravi

解决方案

如果要自动填充参数等,像Eclipse for Java一样。



打开项目属性。然后C ++一般。然后选择Doxygen作为您的文档工具。 / **与您完成填写的评论一样。


I am using eclipse Juno with CDT. I have written a function in a cpp file and I want to add comments for the function. Does CDT supports Auto generate comments by "typing /** then press enter"? In my case the auto generated comments are only as follows.

/**
 * 
 */

As explained here, I even configured to use Doxygen support.Go to C/C++ -> Editors -> Documentation Tool Comments: Doxygen.

I still get the comments as mentioned above. How can I configure eclipse to add comments of my own style?

I changed comments even in Code templates. Go to C/C++ -> Code Style -> Code templates -> Comments. I changed Types, Fields, Methods. Still there is no luck for me.

Can someone assist me on this?

Thanks, Ravi

解决方案

If you want the automated filling in of parameters etc, like Eclipse for Java does.

Open your project properties. Then C++ General. Then select Doxygen as your documentation tool. The type /** as you did to get the fully filled comment.

这篇关于自动生成eclipse CDT中的函数的注释(文档)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆