CDT 中没有 javadoc 风格的注释?
我用CDT来做一个C项目。但是当我输入 /* 和换行符时 我得到了类似的东西
/**
*
*/
,但不是
/**
* @param
* @return
*/
我尝试编辑代码模板,但没有 $tag 变量。
我正在使用 CDT 7.02。 + ubuntu 10.04 LT
我应该做什么。谢谢你!!!
I use CDT to do a C project. but when I type /* and a newline
I got something like
/**
*
*/
but not
/**
* @param
* @return
*/
I tried to edit the code template, but there's no $tag variable.
I'm using CDT 7.02. + ubuntu 10.04 LTs
what should I do . Thank you!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
CDT 开箱即用地支持 doxygen。然而,JDT 中似乎没有找到与 ${tags} 变量等效的变量。
要全局启用 doxygen,请转至 Window >首选项> C/C++>编辑。找到 Documentation Tool Comments 部分并将 Workspace Default 设置为 Doxygen。
要为特定项目启用 doxygen,请右键单击该项目并选择“属性”。然后在 C/C++ 常规页面上单击“启用项目特定设置”,然后选择 doxygen。
CDT supports doxygen out of the box. However there doesn't seem to be an equivalent of the ${tags} variable found in JDT.
To enable doxygen globally go to Window > Preferences > C/C++ > Editor. Find the Documentation Tool Comments section and set Workspace Default to Doxygen.
To enable doxygen for a specific project right click on the project and select Properties. Then on the C/C++ General page click "enable project specific settings" then select doxygen.