在Visual Studio 2010 C ++中为///生成XML文档注释 [英] Generate XML documentation comments for /// in Visual Studio 2010 C++

查看:292
本文介绍了在Visual Studio 2010 C ++中为///生成XML文档注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要注释我的函数原型(用C / C ++编写)与summary,returns,param标签。我如何说服Visual Studio在三个正斜杠之后插入xml标签,如在C#中?我找到一个解决方案。当我在C ++项目中重命名xx.h xx.cs时,我可以使用///生成xml注释(IntelliSense in xml注释也工作)。一定有一个更好的办法,一定不能有?
它会杀了我手动写。非常感谢每一个有用的评论。

I need comment my function prototype (written in C/C++) with summary, returns, param tags. How can I persuade Visual Studio to insert xml tags after three forward slashes like in C#? I found one solution. When I rename xx.h xx.cs in C++ project, I can use /// for generating xml comments (IntelliSense in xml comments works too). There must be a better way, mustn’t there? It would kill me to write it manually. I’ll grateful for every useful comment.

/// <summary>
/// 
/// </summary>
/// <param name="aa"></param>
/// <returns></returns>
bool function1(TypeX aa);


推荐答案

此功能不是buit-in。您可以尝试使用 Visual Studio加载项。我没有使用 Atomineer Utils Pro文档,但它看起来有希望。它生成文档注释和支持C ++。它花费$ 10。

This functionality isn't buit-in. You can try using Visual Studio add-ins. I haven't used Atomineer Utils Pro Documentation myself, but it looks promising. It generates documentation comments and supports C++. It costs $10 though.

这篇关于在Visual Studio 2010 C ++中为///生成XML文档注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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