Documentation 如何让完整的intellisense工具提示注释生效?

Documentation 如何让完整的intellisense工具提示注释生效?,documentation,c++-cli,intellisense,doxygen,Documentation,C++ Cli,Intellisense,Doxygen,我有一些C++/CLI软件,它们都很好,并且以C##’ish的方式记录,这意味着DOxygen能够将它拉到一些漂亮的html中。是否有任何方法可以像.net framework那样,在intellisense工具提示中显示相同的信息 例如,假设这是我的头文件(MyApp.h): 以下是intellisense在键入时对内置函数所做的操作: 以下是intellisense在我键入时为我自己的函数所做的操作: 当然有办法做到这一点吗?总结一下,要想做到这一点,您需要以兼容的形式发表评论: ///

我有一些C++/CLI软件,它们都很好,并且以C##’ish的方式记录,这意味着DOxygen能够将它拉到一些漂亮的html中。是否有任何方法可以像.net framework那样,在intellisense工具提示中显示相同的信息

例如,假设这是我的头文件(MyApp.h):

以下是intellisense在键入时对内置函数所做的操作:

以下是intellisense在我键入时为我自己的函数所做的操作:


当然有办法做到这一点吗?

总结一下,要想做到这一点,您需要以兼容的形式发表评论:

/// <summary>
/// Retrieves the widget at the specified index
/// </summary>
/// <param name="widgetIndex">Index of the widget to retrieve.</param>
/// <returns>The widget at the specified index</returns>
Widget* GetWidget(int widgetIndex);
//
///检索指定索引处的小部件
/// 
///要检索的小部件的索引。
///指定索引处的小部件
Widget*GetWidget(int-widgetIndex);
然后,只需在Visual Studio中右键单击该项目,转到
properties>configuration properties>C/C++>Output Files
,然后将
Generate XML Documentation Files
更改为
Yes


当您重建项目并将其导入其他地方时,您应该会看到完整记录的工具提示出现。

回答的问题是“从C#记录C++/CLI库代码以供使用-最佳工具和实践?”:完美-不确定为什么我在搜索时没有找到:-/
    /*************** MyApp.cpp ***************/

    #include "MyApp.h"

    using namespace MyNamespace;

    MyClass::MyClass()
    {

    }

    bool MyClass::FixWorldHunger( WorldHunger^ problem )
    {
            bool result = false;

            /// TODO: implement something clever

            return result;
    }
/// <summary>
/// Retrieves the widget at the specified index
/// </summary>
/// <param name="widgetIndex">Index of the widget to retrieve.</param>
/// <returns>The widget at the specified index</returns>
Widget* GetWidget(int widgetIndex);