Eclipse的悬停提示可以从头文件中显示Doxygen注释吗? [英] Can Eclipse hover tips display Doxygen comments from header file?

查看:306
本文介绍了Eclipse的悬停提示可以从头文件中显示Doxygen注释吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Eclipse CDT来编写C ++代码。在StackOverflow上阅读了关于是否将doxygen文档放在头文件或实现文件中的几个讨论,似乎大多数开发人员倾向于将doxygen注释放在头文件中(虽然当然不是共识)。但是,如果我将doxygen注释放在我的头文件中,当我将鼠标指针悬停在注释方法/成员的一个实例上时,我无法让Eclipse显示这些注释。有没有办法让Eclipse在Eclipse的悬停提示中使用我的头文件中的Doxygen文档?



我已将文档工具注释工作区默认设置为首选项> C / C ++>编辑器中的Doxygen。



我在Ubuntu 11.04上使用Eclipse 3.6.2和CDT 7.0.2。

解决方案

写入时,Eclipse中的Doxygen注释显示在悬停上:




  • cpp文件(或头文件)方法源(不声明)

  • 头文件在课前声明


I'm using Eclipse CDT to write C++ code. Having read several discussions here on StackOverflow about whether to place doxygen documentation in the header file or the implementation file, it seems the majority of developers favour putting doxygen comments in the header file (although it's by no means a consensus, of course). However, if I put doxygen comments in my header files, I can't get Eclipse to display those comments when I hover the mouse pointer over an instance of the commented method/member. Is there a way to get Eclipse to make use of my Doxygen documentation from my header files in Eclipse's hover tips?

I've set "Documentation tool comments Workspace default" to "Doxygen" in Preferences > C/C++ > Editor.

I'm using Eclipse 3.6.2 with CDT 7.0.2 on Ubuntu 11.04.

解决方案

Doxygen comments are displayed in Eclipse on hover when written in:

  • cpp file (or header) file before method source (not declaration)
  • header file before class declaration

这篇关于Eclipse的悬停提示可以从头文件中显示Doxygen注释吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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